diff --git a/includes/class-wc-rest-authentication.php b/includes/class-wc-rest-authentication.php index ed29b60bbf6..b3085ea6f33 100644 --- a/includes/class-wc-rest-authentication.php +++ b/includes/class-wc-rest-authentication.php @@ -111,6 +111,7 @@ class WC_REST_Authentication { $user_id = $this->authenticate( false ); if ( $user_id ) { wp_set_current_user( $user_id ); + return true; } } return $error;