Skip to content

Commit 90c7b1e

Browse files
Edit implies logged in
1 parent 0c25783 commit 90c7b1e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/wp-includes/comment.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,6 @@ function wp_allow_comment( $commentdata, $wp_error = false ) {
763763

764764
// Notes require logged in users that can edit the current post, ignore flooding check.
765765
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-
}
769766
if ( ! current_user_can( 'edit_post', $commentdata['comment_post_ID'] ) ) {
770767
return new WP_Error( 'comment_note_permission', __( 'You do not have permission edit notes on this post.' ), 403 );
771768
}

0 commit comments

Comments
 (0)