From d53d21781b5504e2dba8e308a66763eabaf11dbb Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 26 May 2015 10:24:49 -0300 Subject: [PATCH] [2.3] Fixed product category media upload modal and some coding standards, closes #8227 --- includes/admin/class-wc-admin-taxonomies.php | 73 +++++++++++--------- 1 file changed, 39 insertions(+), 34 deletions(-) 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 {