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
This commit is contained in:
parent
cee7b15ead
commit
ea175aae36
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue