Skip to content

Commit

Permalink
remove 0 values from featured array
Browse files Browse the repository at this point in the history
  • Loading branch information
SiR-DanieL committed Apr 9, 2015
1 parent 56b1699 commit 2fa4333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wc-product-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function wc_get_featured_product_ids() {
) );

$product_ids = array_keys( $featured );
$parent_ids = array_values( $featured );
$parent_ids = array_values( array_filter( $featured ) );
$featured_product_ids = array_unique( array_merge( $product_ids, $parent_ids ) );

set_transient( 'wc_featured_products', $featured_product_ids, DAY_IN_SECONDS * 30 );
Expand Down

0 comments on commit 2fa4333

Please sign in to comment.