[2.6] [REST API] Do not register errors for missing/invalid consumer key, closes #11124
This commit is contained in:
parent
335567403e
commit
58a7ec9659
|
@ -114,8 +114,6 @@ class WC_REST_Authentication {
|
|||
// Get user data.
|
||||
$user = $this->get_user_data_by_consumer_key( $consumer_key );
|
||||
if ( empty( $user ) ) {
|
||||
$wc_rest_authentication_error = new WP_Error( 'woocommerce_rest_authentication_error', __( 'Consumer Key is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue