From a5dbd53a465d3c0f1625225e946e74e138d79ddd Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 5 Dec 2016 20:16:41 +0000 Subject: [PATCH] Comments: Merge a similar string between comments.php, XML-RPC and the REST API comments controller. Props ramiy. Fixes #39013. Built from https://develop.svn.wordpress.org/trunk@39508 git-svn-id: http://core.svn.wordpress.org/trunk@39448 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 a6044459b4..94d75cf42a 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 @@ -446,7 +446,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { } if ( ! comments_open( $post->ID ) ) { - return new WP_Error( 'rest_comment_closed', __( 'Sorry, comments are closed on this post.' ), array( 'status' => 403 ) ); + return new WP_Error( 'rest_comment_closed', __( 'Sorry, comments are closed for this item.' ), array( 'status' => 403 ) ); } return true; diff --git a/wp-includes/version.php b/wp-includes/version.php index feddecdf01..abb55f4292 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39506'; +$wp_version = '4.8-alpha-39508'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.