Make WordPress Core


Ignore:
Timestamp:
11/05/2009 09:03:09 PM (15 years ago)
Author:
ryan
Message:

Trash comments when trashing a post. see #11073

File:
1 edited

Legend:

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

    r11383 r12148  
    3030} elseif ( in_array($status->post_status, array('draft', 'pending') ) ) {
    3131    do_action('comment_on_draft', $comment_post_ID);
     32    exit;
     33} elseif ( 'trash' == $status->post_status ) {
     34    do_action('comment_on_trash', $comment_post_ID);
    3235    exit;
    3336} else {
Note: See TracChangeset for help on using the changeset viewer.