Fallback for #2992

Closes #2992.
This commit is contained in:
Mike Jolley 2013-04-23 12:29:34 +01:00
parent 7cd82b18dc
commit 14126a6188
2 changed files with 8 additions and 1 deletions

View File

@ -165,6 +165,10 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
= X =
* Localization - Netherlands, Hungarian, Taiwan, Italian, Spanish updates.
* Other minor fixes and localisation updates.
= 2.0.8 - 17/04/2013 =
* Feature - Related products shortcode.
* Tweak - Order item meta - skip serialized fields.

View File

@ -407,9 +407,12 @@ if ( ! function_exists( 'woocommerce_disable_admin_bar' ) ) {
* @param mixed $user
* @return void
*/
function woocommerce_load_persistent_cart( $user_login, $user ) {
function woocommerce_load_persistent_cart( $user_login, $user = 0 ) {
global $woocommerce;
if ( ! $user )
return;
$saved_cart = get_user_meta( $user->ID, '_woocommerce_persistent_cart', true );
if ( $saved_cart )