From a1f285641f73f061691d77d2cfa39f94c31dbf0d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Nov 2016 01:51:30 +0000 Subject: [PATCH] REST API: After [39306], move `author_ip` argument to the correct place. See #38822. Built from https://develop.svn.wordpress.org/trunk@39310 git-svn-id: http://core.svn.wordpress.org/trunk@39250 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/endpoints/class-wp-rest-comments-controller.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index 450959c76a..7a8d4b0584 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -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() ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index ad7f05c2f7..3e66aa7072 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta4-39309'; +$wp_version = '4.7-beta4-39310'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.