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:
Ryan Boren 2009-03-02 22:42:22 +00:00
parent d268b67e84
commit 6a301a48c4

View File

@ -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.') );
}