WordPress.org

Make WordPress Core

Changeset 18974


Ignore:
Timestamp:
10/14/11 18:39:31 (3 years ago)
Author:
ryan
Message:

In wp_trash_post(), rename the trash_post action to wp_trash_post to avoid collision with the wp_transition_post_status() trash_post state transition. Props SergeyBiryukov. fixes #15628

File:
1 edited

Legend:

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

    r18932 r18974  
    20762076        return false; 
    20772077 
    2078     do_action('trash_post', $post_id); 
     2078    do_action('wp_trash_post', $post_id); 
    20792079 
    20802080    add_post_meta($post_id,'_wp_trash_meta_status', $post['post_status']); 
Note: See TracChangeset for help on using the changeset viewer.