WordPress.org

Make WordPress Core

Ticket #13731: 13731.diff

File 13731.diff, 686 bytes (added by scribu, 3 years ago)
  • wp-includes/post.php

     
    19571957        if ( $post->post_type == 'attachment' ) 
    19581958                return wp_delete_attachment( $postid, $force_delete ); 
    19591959 
    1960         do_action('delete_post', $postid); 
     1960        do_action('before_delete_post', $postid); 
    19611961 
    19621962        delete_post_meta($postid,'_wp_trash_meta_status'); 
    19631963        delete_post_meta($postid,'_wp_trash_meta_time'); 
     
    20292029 
    20302030        wp_clear_scheduled_hook('publish_future_post', array( $postid ) ); 
    20312031 
    2032         do_action('deleted_post', $postid); 
     2032        do_action('after_delete_post', $postid); 
    20332033 
    20342034        return $post; 
    20352035}