Require user to be logged in to comment on private posts. Props tott. see #8997

git-svn-id: http://svn.automattic.com/wordpress/trunk@10684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-02 22:42:22 +00:00
parent d4a2f81323
commit 27ff02e402
1 changed files with 1 additions and 1 deletions

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