From 7958f9cca9a69c36bb2cd68768da7f629ff17f24 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Thu, 24 Aug 2017 19:17:18 -0300 Subject: [PATCH] Ignore coding standards --- includes/shortcodes/class-wc-shortcode-products.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/shortcodes/class-wc-shortcode-products.php b/includes/shortcodes/class-wc-shortcode-products.php index f28fc582fae..92977adb2ec 100644 --- a/includes/shortcodes/class-wc-shortcode-products.php +++ b/includes/shortcodes/class-wc-shortcode-products.php @@ -102,11 +102,14 @@ class WC_Shortcode_Products { 'ignore_sticky_posts' => 1, 'orderby' => $this->attributes['orderby'], 'order' => $this->attributes['order'], - 'posts_per_page' => -1, - 'meta_query' => WC()->query->get_meta_query(), - 'tax_query' => WC()->query->get_tax_query(), ); + // @codingStandardsIgnoreStart + $this->query_args['posts_per_page'] = -1; + $this->query_args['meta_query'] = WC()->query->get_meta_query(); + $this->query_args['tax_query'] = WC()->query->get_tax_query(); + // @codingStandardsIgnoreEnd + if ( ! empty( $this->attributes['skus'] ) ) { $this->query_args['meta_query'][] = array( 'key' => '_sku',