diff --git a/includes/wc-product-functions.php b/includes/wc-product-functions.php index 14e164eed17..6933c2b7e63 100644 --- a/includes/wc-product-functions.php +++ b/includes/wc-product-functions.php @@ -181,7 +181,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 );