Open ablears opened 7 years ago
Just hit this too. Probably could get away with keeping it by just wrapping it in a function_exists()
call:
function wpsc_serialize_shopping_cart() {
global $wpsc_cart;
if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
return;
if ( is_object( $wpsc_cart ) ) {
$wpsc_cart->errors = array();
}
if ( function_exists( 'wpsc_get_current_customer_id' ) ) {
// need to prevent set_cookie from being called at this stage in case the user just logged out
// because by now, some output must have been printed out
$customer_id = wpsc_get_current_customer_id();
if ( $customer_id ) {
wpsc_update_customer_cart( $wpsc_cart, $customer_id );
}
}
return true;
}
@DrewAPicture Would happily accept that PR 👍
PR: #2316
I see the following when I activate WPEC 3.12.0 via WP CLI: