Ticket #19739: 19739.diff
| File 19739.diff, 769 bytes (added by , 14 years ago) |
|---|
-
wp-comments-post.php
36 36 wp_die( __('Sorry, comments are closed for this item.') ); 37 37 } elseif ( 'trash' == $status ) { 38 38 do_action('comment_on_trash', $comment_post_ID); 39 exit; 39 if ( apply_filters( 'deny_comment_on_trash', true, $comment_post_ID ) ) 40 exit; 40 41 } elseif ( !$status_obj->public && !$status_obj->private ) { 41 42 do_action('comment_on_draft', $comment_post_ID); 42 exit; 43 if ( apply_filters( 'deny_comment_on_draft', true, $comment_post_ID ) ) 44 exit; 43 45 } elseif ( post_password_required($comment_post_ID) ) { 44 46 do_action('comment_on_password_protected', $comment_post_ID); 45 47 exit;