We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c25783 commit 90c7b1eCopy full SHA for 90c7b1e
src/wp-includes/comment.php
@@ -763,9 +763,6 @@ function wp_allow_comment( $commentdata, $wp_error = false ) {
763
764
// Notes require logged in users that can edit the current post, ignore flooding check.
765
if ( isset( $commentdata['comment_type'] ) && 'note' === $commentdata['comment_type'] ) {
766
- if ( ! is_user_logged_in() ) {
767
- return new WP_Error( 'comment_note_login', __( 'You must be logged in to post a note.' ), 403 );
768
- }
769
if ( ! current_user_can( 'edit_post', $commentdata['comment_post_ID'] ) ) {
770
return new WP_Error( 'comment_note_permission', __( 'You do not have permission edit notes on this post.' ), 403 );
771
}
0 commit comments