mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket
git-svn-id: https://develop.svn.wordpress.org/trunk@5707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -19,7 +19,7 @@ if ( empty($status->comment_status) ) {
|
||||
} elseif ( 'closed' == $status->comment_status ) {
|
||||
do_action('comment_closed', $comment_post_ID);
|
||||
wp_die( __('Sorry, comments are closed for this item.') );
|
||||
} elseif ( 'draft' == $status->post_status ) {
|
||||
} elseif ( in_array($status->post_status, array('draft', 'pending') ) ) {
|
||||
do_action('comment_on_draft', $comment_post_ID);
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user