From 1268a01c3caf8c6d7b7ffbfb9656412ed883ed5a Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Wed, 6 Feb 2013 11:15:58 +0100 Subject: [PATCH] Fixed errors for #2364. Good morning... --- admin/woocommerce-admin-import.php | 2 +- woocommerce.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/woocommerce-admin-import.php b/admin/woocommerce-admin-import.php index 26159847be6..5b74c0a6e22 100644 --- a/admin/woocommerce-admin-import.php +++ b/admin/woocommerce-admin-import.php @@ -62,7 +62,7 @@ function woocommerce_import_start() { // Register the taxonomy now so that the import works! register_taxonomy( $domain, - apply_filters( 'woocommerce_taxonomy_objects_' . $domain, array('product'), + apply_filters( 'woocommerce_taxonomy_objects_' . $domain, array('product') ), apply_filters( 'woocommerce_taxonomy_args_' . $domain, array( 'hierarchical' => true, 'show_ui' => false, diff --git a/woocommerce.php b/woocommerce.php index 5ba98243953..ceceb881222 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -873,7 +873,7 @@ class Woocommerce { ); register_taxonomy( 'product_shipping_class', - apply_filters( 'woocommerce_taxonomy_objects_product_shipping_class', array('product', 'product_variation'), + apply_filters( 'woocommerce_taxonomy_objects_product_shipping_class', array('product', 'product_variation') ), apply_filters( 'woocommerce_taxonomy_args_product_shipping_class', array( 'hierarchical' => true, 'update_count_callback' => '_update_post_term_count', @@ -905,7 +905,7 @@ class Woocommerce { ); register_taxonomy( 'shop_order_status', - apply_filters( 'woocommerce_taxonomy_objects_shop_order_status', array('shop_order'), + apply_filters( 'woocommerce_taxonomy_objects_shop_order_status', array('shop_order') ), apply_filters( 'woocommerce_taxonomy_args_shop_order_status', array( 'hierarchical' => false, 'update_count_callback' => '_update_post_term_count', @@ -929,7 +929,7 @@ class Woocommerce { $show_in_nav_menus = apply_filters( 'woocommerce_attribute_show_in_nav_menus', false, $name ); register_taxonomy( $name, - apply_filters( 'woocommerce_taxonomy_objects_' . $name, array('product'), + apply_filters( 'woocommerce_taxonomy_objects_' . $name, array('product') ), apply_filters( 'woocommerce_taxonomy_args_' . $name, array( 'hierarchical' => $hierarchical, 'update_count_callback' => '_update_post_term_count',