This commit is contained in:
Stratos Vetsos 2016-07-18 20:52:26 +03:00
parent 1d1a5d937c
commit f4f3b5e364
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {