diff --git a/includes/admin/class-wc-admin-taxonomies.php b/includes/admin/class-wc-admin-taxonomies.php index 34e4812e28b..2722a3dfaf6 100644 --- a/includes/admin/class-wc-admin-taxonomies.php +++ b/includes/admin/class-wc-admin-taxonomies.php @@ -2,11 +2,11 @@ /** * Handles taxonomies in admin * - * @class WC_Admin_Taxonomies - * @version 2.1.0 - * @package WooCommerce/Admin - * @category Class - * @author WooThemes + * @class WC_Admin_Taxonomies + * @version 2.3.10 + * @package WooCommerce/Admin + * @category Class + * @author WooThemes */ if ( ! defined( 'ABSPATH' ) ) { @@ -58,7 +58,7 @@ class WC_Admin_Taxonomies { * @param mixed $taxonomy */ public function create_term( $term_id, $tt_id = '', $taxonomy = '' ) { - if ( $taxonomy != 'product_cat' && ! taxonomy_is_product_attribute( $taxonomy ) ) { + if ( 'product_cat' != $taxonomy && ! taxonomy_is_product_attribute( $taxonomy ) ) { return; } @@ -98,8 +98,8 @@ class WC_Admin_Taxonomies {
-
-
+
+
@@ -107,8 +107,8 @@ class WC_Admin_Taxonomies {