wc_add_to_cart_message() when non-array is passed.

This commit is contained in:
Mike Jolley 2016-06-16 22:32:06 +01:00
parent cde4932e10
commit 0f714a13a4
2 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,7 @@ function wc_add_to_cart_message( $products, $show_qty = false ) {
$show_qty = false;
}
if ( ! $show_qty && ! is_array( $products ) ) {
if ( ! $show_qty ) {
$products = array_fill_keys( array_values( $products ), 1 );
}

View File

@ -158,6 +158,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
Fix - wc_add_to_cart_message() when non-array is passed.
= 2.6.1 - 16/06/16 =
* Fix - Added missing localized format for line taxes in orders screen to prevent total miscalculation in manual orders.
* Fix - Improved the hour and time fields validation pattern on the orders screen.