From 970943e6366cf9f3200a5f6700b0a53df349da78 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 6 May 2010 15:38:40 +0000 Subject: [PATCH] Allow comments on private posts to proceed past the comment_on_draft action and exit branch. We handle whether the commenter has the appropriate caps further down. fixes #13276. git-svn-id: http://svn.automattic.com/wordpress/trunk@14473 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index 87bad61d21..e2e12f76cb 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -37,7 +37,7 @@ if ( !comments_open($comment_post_ID) ) { } elseif ( 'trash' == $status ) { do_action('comment_on_trash', $comment_post_ID); exit; -} elseif ( !$status_obj->public ) { +} elseif ( !$status_obj->public && !$status_obj->private ) { do_action('comment_on_draft', $comment_post_ID); exit; } elseif ( post_password_required($comment_post_ID) ) {