Comments: Merge similar strings between comments.php and the REST API comments controller.
Merges [39490] to the 4.7 branch. Props ramiy. Fixes #39014 for 4.7. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce0fe0838a
commit
ac7222bfe9
@ -3059,7 +3059,7 @@ function wp_handle_comment_submission( $comment_data ) {
|
||||
}
|
||||
} else {
|
||||
if ( get_option( 'comment_registration' ) ) {
|
||||
return new WP_Error( 'not_logged_in', __( 'Sorry, you must be logged in to post a comment.' ), 403 );
|
||||
return new WP_Error( 'not_logged_in', __( 'Sorry, you must be logged in to comment.' ), 403 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user