From ea175aae36314e6135398143531609a51c519ca3 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 5 Dec 2016 20:17:06 +0000 Subject: [PATCH] Comments: Merge a similar string between comments.php, XML-RPC and the REST API comments controller. Merge of [39508] to the 4.7 branch. Props ramiy. See #39013. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39509 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-comments-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index e2f64353bc..9d61294b58 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/src/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;