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. Built from https://develop.svn.wordpress.org/branches/4.7@39491 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a1005ad7f9
commit
d6497ddf70
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-RC2-39489';
|
$wp_version = '4.7-RC2-39491';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue