From 161b1af64e50e971d7df9137c1384fdbba087e0f Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@14473 602fd350-edb4-49c9-b593-d223f7449a82 --- 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) ) {