wc_add_to_cart_message() when non-array is passed.
This commit is contained in:
parent
cde4932e10
commit
0f714a13a4
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue