Changeset 2745323
- Timestamp:
- 06/20/2022 01:59:11 PM (3 years ago)
- Location:
- fiber-admin
- Files:
-
- 10 edited
- 1 copied
-
tags/2.0.9 (copied) (copied from fiber-admin/trunk)
-
tags/2.0.9/changelog.txt (modified) (1 diff)
-
tags/2.0.9/fiberadmin.php (modified) (2 diffs)
-
tags/2.0.9/includes/cpo.php (modified) (2 diffs)
-
tags/2.0.9/includes/db-error.php (modified) (1 diff)
-
tags/2.0.9/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fiberadmin.php (modified) (2 diffs)
-
trunk/includes/cpo.php (modified) (2 diffs)
-
trunk/includes/db-error.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fiber-admin/tags/2.0.9/changelog.txt
r2742568 r2745323 1 1 == Changelog == 2 3 = 2.0.9 = 4 *Release Date - 20 June 2022* 5 6 * Fixed: Missing `stripslashes` when displaying DB Error message. 7 * Fixed: Fix issue custom term order not working when creating new item. 2 8 3 9 = 2.0.8 = -
fiber-admin/tags/2.0.9/fiberadmin.php
r2742568 r2745323 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0. 86 * Version: 2.0.9 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 … … 26 26 */ 27 27 28 const FIBERADMIN_VERSION = '2.0. 8';28 const FIBERADMIN_VERSION = '2.0.9'; 29 29 const FIBERADMIN_DEV_MODE = false; 30 30 const FIBERADMIN_FILENAME = __FILE__; -
fiber-admin/tags/2.0.9/includes/cpo.php
r2714693 r2745323 20 20 21 21 add_action('pre_get_posts', array($this, 'fiad_cpo_update_order')); 22 add_filter('create_term', array($this, 'fiad_cpo_create_term_order'), 10, 3); 22 23 add_filter('get_terms_orderby', array($this, 'fiad_cpo_update_term_order'), 10, 3); 23 24 add_filter('get_terms_args', array($this, 'fiad_get_terms_args'), 10, 2); … … 221 222 return $args; 222 223 } 224 225 public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){ 226 global $wpdb; 227 228 if(in_array($taxonomy, fiad_get_cpo_option('taxonomies'))){ 229 $order_start = 0; 230 231 // Get minimum item 232 $terms_args = array( 233 'taxonomy' => $taxonomy, 234 'hide_empty' => false, 235 'number' => 1, 236 'orderby' => 'term_order', 237 'order' => 'ASC', 238 'exclude' => array($term_id) 239 ); 240 241 $terms = get_terms($terms_args); 242 if(!empty($terms) && !is_wp_error($terms)){ 243 $order_start = $terms[0]->term_order; 244 } 245 246 $wpdb->update($wpdb->terms, array('term_order' => $order_start + 1), array('term_id' => $term_id)); 247 } 248 } 223 249 } 224 250 -
fiber-admin/tags/2.0.9/includes/db-error.php
r2626715 r2745323 94 94 95 95 $html .= '<div class="db-error__error-message">'; 96 $html .= $db_error_message;96 $html .= stripslashes($db_error_message); 97 97 $html .= '</div>'; 98 98 -
fiber-admin/tags/2.0.9/readme.txt
r2742568 r2745323 5 5 Tested up to: 5.9.3 6 6 Requires PHP: 7.0 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0. 8=50 *Release Date - 15June 2022*49 = 2.0.9 = 50 *Release Date - 20 June 2022* 51 51 52 * Fixed: Use `show_ui` to show CPT in CPO. 52 * Fixed: Missing `stripslashes` when displaying DB Error message. 53 * Fixed: Fix issue custom term order not working when creating new item. -
fiber-admin/trunk/changelog.txt
r2742568 r2745323 1 1 == Changelog == 2 3 = 2.0.9 = 4 *Release Date - 20 June 2022* 5 6 * Fixed: Missing `stripslashes` when displaying DB Error message. 7 * Fixed: Fix issue custom term order not working when creating new item. 2 8 3 9 = 2.0.8 = -
fiber-admin/trunk/fiberadmin.php
r2742568 r2745323 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0. 86 * Version: 2.0.9 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 … … 26 26 */ 27 27 28 const FIBERADMIN_VERSION = '2.0. 8';28 const FIBERADMIN_VERSION = '2.0.9'; 29 29 const FIBERADMIN_DEV_MODE = false; 30 30 const FIBERADMIN_FILENAME = __FILE__; -
fiber-admin/trunk/includes/cpo.php
r2714693 r2745323 20 20 21 21 add_action('pre_get_posts', array($this, 'fiad_cpo_update_order')); 22 add_filter('create_term', array($this, 'fiad_cpo_create_term_order'), 10, 3); 22 23 add_filter('get_terms_orderby', array($this, 'fiad_cpo_update_term_order'), 10, 3); 23 24 add_filter('get_terms_args', array($this, 'fiad_get_terms_args'), 10, 2); … … 221 222 return $args; 222 223 } 224 225 public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){ 226 global $wpdb; 227 228 if(in_array($taxonomy, fiad_get_cpo_option('taxonomies'))){ 229 $order_start = 0; 230 231 // Get minimum item 232 $terms_args = array( 233 'taxonomy' => $taxonomy, 234 'hide_empty' => false, 235 'number' => 1, 236 'orderby' => 'term_order', 237 'order' => 'ASC', 238 'exclude' => array($term_id) 239 ); 240 241 $terms = get_terms($terms_args); 242 if(!empty($terms) && !is_wp_error($terms)){ 243 $order_start = $terms[0]->term_order; 244 } 245 246 $wpdb->update($wpdb->terms, array('term_order' => $order_start + 1), array('term_id' => $term_id)); 247 } 248 } 223 249 } 224 250 -
fiber-admin/trunk/includes/db-error.php
r2626715 r2745323 94 94 95 95 $html .= '<div class="db-error__error-message">'; 96 $html .= $db_error_message;96 $html .= stripslashes($db_error_message); 97 97 $html .= '</div>'; 98 98 -
fiber-admin/trunk/readme.txt
r2742568 r2745323 5 5 Tested up to: 5.9.3 6 6 Requires PHP: 7.0 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0. 8=50 *Release Date - 15June 2022*49 = 2.0.9 = 50 *Release Date - 20 June 2022* 51 51 52 * Fixed: Use `show_ui` to show CPT in CPO. 52 * Fixed: Missing `stripslashes` when displaying DB Error message. 53 * Fixed: Fix issue custom term order not working when creating new item.
Note: See TracChangeset
for help on using the changeset viewer.