mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
dad2cdf083
commit
ae7642de08
@ -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() )
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user