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:
parent
d4a2f81323
commit
27ff02e402
|
@ -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