diff --git a/changelog.txt b/changelog.txt index 9074d42..84de04c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,10 @@ == Changelog == += 2.0.10 = +*Release Date - 25 July 2022* + +* Fixed: Fix issue showing error in custom taxonomies when option Custom Taxonomy Order is not enabled. + = 2.0.9 = *Release Date - 20 June 2022* diff --git a/fiberadmin.php b/fiberadmin.php index 2316642..21b8a73 100644 --- a/fiberadmin.php +++ b/fiberadmin.php @@ -3,7 +3,7 @@ * Plugin Name: Fiber Admin * Plugin URI: https://wordpress.org/plugins/fiber-admin/ * Description: 💈 Bring multiple customization features to make your own WordPress admin. - * Version: 2.0.9 + * Version: 2.0.10 * Requires at least: 5.2 * Requires PHP: 7.0 * Author: Dao @@ -25,7 +25,12 @@ * Definitions */ -const FIBERADMIN_VERSION = '2.0.9'; +if(!function_exists('get_plugin_data')){ + require_once(ABSPATH . 'wp-admin/includes/plugin.php'); +} +$plugin_data = get_plugin_data(__FILE__); + +define("FIBERADMIN_VERSION", $plugin_data['Version']); const FIBERADMIN_DEV_MODE = false; const FIBERADMIN_FILENAME = __FILE__; define("FIBERADMIN_DIR", plugin_dir_path(__FILE__)); diff --git a/includes/cpo.php b/includes/cpo.php index ccf43ea..8ce4359 100644 --- a/includes/cpo.php +++ b/includes/cpo.php @@ -223,6 +223,10 @@ public function fiad_get_terms_args($args, $taxonomies){ } public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){ + if(!fiad_get_cpo_option('taxonomies')){ + return false; + } + global $wpdb; if(in_array($taxonomy, fiad_get_cpo_option('taxonomies'))){ @@ -245,6 +249,8 @@ public function fiad_cpo_create_term_order($term_id, $tt_id, $taxonomy){ $wpdb->update($wpdb->terms, array('term_order' => $order_start + 1), array('term_id' => $term_id)); } + + return false; } } diff --git a/readme.txt b/readme.txt index c1b711f..6fbb15e 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: daomapsieucap Tags: white label, admin tool, duplicate post, content protection Requires at least: 4.7 -Tested up to: 5.9.3 +Tested up to: 6.0.1 Requires PHP: 7.0 -Stable tag: 2.0.9 +Stable tag: 2.0.10 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -46,8 +46,7 @@ At the first time using this setting, Fiber Admin will ask you to save it to cre == Changelog == -= 2.0.9 = -*Release Date - 20 June 2022* += 2.0.10 = +*Release Date - 25 July 2022* -* Fixed: Missing `stripslashes` when displaying DB Error message. -* Fixed: Fix issue custom term order not working when creating new item. \ No newline at end of file +* Fixed: Fix issue showing error in custom taxonomies when option Custom Taxonomy Order is not enabled. \ No newline at end of file