From b2711f3d6485d267fc59e16652249b72c96f5eb8 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 29 May 2015 10:05:15 -0300 Subject: [PATCH] [API] Fixed products tags in write-mode --- includes/api/class-wc-api-products.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-products.php b/includes/api/class-wc-api-products.php index b78bddd9766..2522fe941ac 100644 --- a/includes/api/class-wc-api-products.php +++ b/includes/api/class-wc-api-products.php @@ -1143,7 +1143,7 @@ class WC_API_Products extends WC_API_Resource { // Product tags if ( isset( $data['tags'] ) && is_array( $data['tags'] ) ) { $term_ids = array_unique( array_map( 'intval', $data['tags'] ) ); - wp_set_object_terms( $product_id, $terms, 'product_tag' ); + wp_set_object_terms( $product_id, $term_ids, 'product_tag' ); } // Downloadable