Fix - SKUs prop on products shortcode.

Fixes #11135
This commit is contained in:
Mike Jolley 2016-06-15 10:02:11 +01:00
parent 73c5f91622
commit 6b619ecf82
2 changed files with 3 additions and 2 deletions

View File

@ -348,14 +348,14 @@ class WC_Shortcodes {
);
// Ignore catalog visibility
$query_args['meta_query'] = WC()->query->stock_status_meta_query();
$query_args['meta_query'] = array_merge( $query_args['meta_query'], WC()->query->stock_status_meta_query() );
}
if ( ! empty( $atts['ids'] ) ) {
$query_args['post__in'] = array_map( 'trim', explode( ',', $atts['ids'] ) );
// Ignore catalog visibility
$query_args['meta_query'] = WC()->query->stock_status_meta_query();
$query_args['meta_query'] = array_merge( $query_args['meta_query'], WC()->query->stock_status_meta_query() );
}
return self::product_loop( $query_args, $atts, 'products' );

View File

@ -165,6 +165,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Missing localized format for line taxes in orders screen.
* Fix - Hour and time fields pattern on the orders screen.
* Fix - PayPal does not allow free products, but paid shipping. Workaround by sending shipping as a line item if it is the only cost.
* Fix - SKUs prop on products shortcode.
* Tweak - Hide 'payment methods' screen if no methods support it.
= 2.6.0 - 14/06/16 =