REST API: After [39306], move `author_ip` argument to the correct place.

See #38822.

git-svn-id: https://develop.svn.wordpress.org/trunk@39310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-11-19 01:51:01 +00:00
parent dad2cdf083
commit ae7642de08
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
if ( empty( $_SERVER['REMOTE_ADDR'] ) || $request['author_ip'] !== $_SERVER['REMOTE_ADDR'] ) {
return new WP_Error( 'rest_comment_invalid_author_ip',
/* translators: %s: request parameter */
sprintf( __( "Sorry, you are not allowed to edit '%s' for comments.", 'author_ip' ) ),
sprintf( __( "Sorry, you are not allowed to edit '%s' for comments." ), 'author_ip' ),
array( 'status' => rest_authorization_required_code() )
);
}