Comments: Merge similar strings between comments.php and the REST API comments controller.
Props ramiy. Fixes #39014. git-svn-id: https://develop.svn.wordpress.org/trunk@39490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
33f442f17b
commit
bc6b164d23
@ -3059,7 +3059,7 @@ function wp_handle_comment_submission( $comment_data ) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( get_option( 'comment_registration' ) ) {
|
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