Skip to content

Commit fcde078

Browse files
committed
- Add text domain to translation
- Use correct previx to error code
1 parent 3932a21 commit fcde078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/class-wp-rest-oauth1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ protected function check_oauth_signature( $consumer, $oauth_params, $token = nul
650650
$params = wp_unslash( $_POST );
651651
break;
652652
default:
653-
return new WP_Error( 'json_oauth1_unknown_http_method',
654-
sprintf( __( 'Unknown http method: %s' ), $http_method ),
653+
return new WP_Error( 'rest_oauth1_unknown_http_method',
654+
sprintf( __( 'Unknown http method: %s', 'rest_oauth1' ), $http_method ),
655655
array( 'status' => 401 ) );
656656
}
657657

0 commit comments

Comments
 (0)