Changeset 12647
- Timestamp:
- 01/07/2010 07:37:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r12300 r12647 28 28 do_action('comment_closed', $comment_post_ID); 29 29 wp_die( __('Sorry, comments are closed for this item.') ); 30 } elseif ( in_array($status->post_status, array('draft', ' pending') ) ) {30 } elseif ( in_array($status->post_status, array('draft', 'future', 'pending') ) ) { 31 31 do_action('comment_on_draft', $comment_post_ID); 32 32 exit; 33 33 } elseif ( 'trash' == $status->post_status ) { 34 34 do_action('comment_on_trash', $comment_post_ID); 35 exit; 36 } elseif ( post_password_required($comment_post_ID) ) { 37 do_action('comment_on_password_protected', $comment_post_ID); 35 38 exit; 36 39 } else {
Note: See TracChangeset
for help on using the changeset viewer.