Make WordPress Core


Ignore:
Timestamp:
06/14/2007 04:24:28 PM (17 years ago)
Author:
markjaquith
Message:

Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r5640 r5707  
    2020    do_action('comment_closed', $comment_post_ID);
    2121    wp_die( __('Sorry, comments are closed for this item.') );
    22 } elseif ( 'draft' == $status->post_status ) {
     22} elseif ( in_array($status->post_status, array('draft', 'pending') ) ) {
    2323    do_action('comment_on_draft', $comment_post_ID);
    2424    exit;
Note: See TracChangeset for help on using the changeset viewer.