From a4d00eca9a6889b2cd41134c3110e499cd2350c7 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 17 Sep 2009 21:06:41 +0000 Subject: [PATCH] Remove temporary transition code from the trash_meta option to postmeta transition See #4529. git-svn-id: https://develop.svn.wordpress.org/trunk@11947 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index b2fe6968c1..2d08ed11dd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1173,8 +1173,6 @@ function wp_untrash_post($post_id = 0) { do_action('untrash_post', $post_id); $post_status = get_post_meta($post_id, '_wp_trash_meta_status', true); - if ( empty($post_status) ) - $post_status = ('attachment' == $post['post_type'] ) ? 'inherit' : 'draft'; $post['post_status'] = $post_status;