Require user to be logged in to comment on private posts. Props tott. see #8997
git-svn-id: https://develop.svn.wordpress.org/trunk@10684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d268b67e84
commit
6a301a48c4
@ -52,7 +52,7 @@ if ( $user->ID ) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ( get_option('comment_registration') )
|
||||
if ( get_option('comment_registration') || 'private' == $status->post_status )
|
||||
wp_die( __('Sorry, you must be logged in to post a comment.') );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user