Changeset 13200
- Timestamp:
- 02/18/2010 08:08:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r12647 r13200 25 25 do_action('comment_id_not_found', $comment_post_ID); 26 26 exit; 27 } elseif ( !comments_open($comment_post_ID) ) { 27 } 28 29 $status_obj = get_post_status_object($status->post_status); 30 31 if ( !comments_open($comment_post_ID) ) { 28 32 do_action('comment_closed', $comment_post_ID); 29 33 wp_die( __('Sorry, comments are closed for this item.') ); 30 } elseif ( in_array($status->post_status, array('draft', 'future', 'pending') ) ) {31 do_action('comment_on_draft', $comment_post_ID);32 exit;33 34 } elseif ( 'trash' == $status->post_status ) { 34 35 do_action('comment_on_trash', $comment_post_ID); 36 exit; 37 } elseif ( !$status_obj->public ) { 38 do_action('comment_on_draft', $comment_post_ID); 35 39 exit; 36 40 } elseif ( post_password_required($comment_post_ID) ) {
Note: See TracChangeset
for help on using the changeset viewer.