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:
Mark Jaquith
2007-06-14 16:24:28 +00:00
parent 2a6e8a08be
commit 0f0788d24d
13 changed files with 139 additions and 58 deletions
+1 -1
View File
@@ -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;
}