diff --git a/wp-comments-post.php b/wp-comments-post.php index 64cc8e3295..8032ed3950 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -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.') ); }