Ensure array has values Closes #2900.
This commit is contained in:
parent
aaefe73942
commit
91e1622b91
|
@ -77,6 +77,7 @@ class WC_Widget_Onsale extends WP_Widget {
|
|||
|
||||
// Get products on sale
|
||||
$product_ids_on_sale = woocommerce_get_product_ids_on_sale();
|
||||
$product_ids_on_sale[] = 0;
|
||||
|
||||
$meta_query = array();
|
||||
$meta_query[] = $woocommerce->query->visibility_meta_query();
|
||||
|
|
Loading…
Reference in New Issue