closes #11448
This commit is contained in:
parent
1d1a5d937c
commit
f4f3b5e364
|
@ -96,7 +96,7 @@ function wc_add_to_cart_message( $products, $show_qty = false ) {
|
|||
}
|
||||
|
||||
if ( ! $show_qty ) {
|
||||
$products = array_fill_keys( array_values( $products ), 1 );
|
||||
$products = array_fill_keys( array_keys( $products ), 1 );
|
||||
}
|
||||
|
||||
foreach ( $products as $product_id => $qty ) {
|
||||
|
|
Loading…
Reference in New Issue