WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/23/2011 11:43:14 PM (10 years ago)
Author:
ryan
Message:

Rename duplicate delete_post and deleted_post actions to before_delete_post and after_delete_post. Props scribu. fixes #13731

File:
1 edited

Legend:

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

    r17999 r18012  
    19681968        return wp_delete_attachment( $postid, $force_delete );
    19691969
    1970     do_action('delete_post', $postid);
     1970    do_action('before_delete_post', $postid);
    19711971
    19721972    delete_post_meta($postid,'_wp_trash_meta_status');
     
    20402040    wp_clear_scheduled_hook('publish_future_post', array( $postid ) );
    20412041
    2042     do_action('deleted_post', $postid);
     2042    do_action('after_delete_post', $postid);
    20432043
    20442044    return $post;
Note: See TracChangeset for help on using the changeset viewer.