Unused key variable

This commit is contained in:
Mike Jolley 2019-02-12 14:19:37 +00:00
parent 7f3816dfe7
commit 4dd5cef7b9
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple
if ( $prices ) {
sort( $prices, SORT_NUMERIC );
// To allow sorting and filtering by multiple values, we have no choice but to store child prices in this manner.
foreach ( $prices as $key => $price ) {
foreach ( $prices as $price ) {
if ( is_null( $price ) || '' === $price ) {
continue;
}