mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
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:
@@ -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.') );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user