Ignore coding standards

This commit is contained in:
Claudio Sanches 2017-08-24 19:17:18 -03:00
parent 84cf4d0be8
commit 7958f9cca9
1 changed files with 6 additions and 3 deletions

View File

@ -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',