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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-10-14 18:39:31 +00:00
parent 73fb90a842
commit fca9f2e2e3
1 changed files with 1 additions and 1 deletions

View File

@ -2075,7 +2075,7 @@ function wp_trash_post($post_id = 0) {
if ( $post['post_status'] == 'trash' )
return false;
do_action('trash_post', $post_id);
do_action('wp_trash_post', $post_id);
add_post_meta($post_id,'_wp_trash_meta_status', $post['post_status']);
add_post_meta($post_id,'_wp_trash_meta_time', time());