mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user