From 980a726984ceecf973266fe9e47b2a22e49beeb0 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 23 May 2016 13:39:23 +0100 Subject: [PATCH] Fix grouped add to cart notice Closes #10974 --- includes/wc-cart-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-cart-functions.php b/includes/wc-cart-functions.php index 0772c502475..08d7ebec26a 100644 --- a/includes/wc-cart-functions.php +++ b/includes/wc-cart-functions.php @@ -73,7 +73,7 @@ function wc_add_to_cart_message( $products, $show_qty = false ) { $show_qty = false; } - if ( ! $show_qty ) { + if ( ! $show_qty && ! is_array( $products ) ) { $products = array_fill_keys( array_values( $products ), 1 ); }