WordPress.org

Make WordPress Core

Ticket #15628: 15628.patch

File 15628.patch, 474 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/post.php

     
    20502050        if ( $post['post_status'] == 'trash' ) 
    20512051                return false; 
    20522052 
    2053         do_action('trash_post', $post_id); 
     2053        do_action('wp_trash_post', $post_id); 
    20542054 
    20552055        add_post_meta($post_id,'_wp_trash_meta_status', $post['post_status']); 
    20562056        add_post_meta($post_id,'_wp_trash_meta_time', time());