diff --git a/readme.txt b/readme.txt index 5af726dd1e8..4d0ca26a824 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 4d05df6d5cd..958f21cdf9f 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -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 )