[2.6] [REST API] Do not register errors for missing/invalid consumer key, closes #11124

This commit is contained in:
Claudio Sanches 2016-06-14 19:47:39 -03:00
parent 335567403e
commit 58a7ec9659
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}