Skip to content

Commit

Permalink
woocommerce_shortcode_products_query params
Browse files Browse the repository at this point in the history
The `woocommerce_shortcode_products_query` filter is used earlier on in this file but with 3 params. The third being `$loop_name`. It's not relevant here, so set to `null`, but needs to be included to avoid errors when adding a filter.
  • Loading branch information
jamesckemp authored Jun 6, 2017
1 parent 4138b2b commit 984ed08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public static function product( $atts ) {

ob_start();

$products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $args, $atts ) );
$products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $args, $atts, null ) );

if ( $products->have_posts() ) : ?>

Expand Down

0 comments on commit 984ed08

Please sign in to comment.