Remove temporary transition code from the trash_meta option to postmeta transition See #4529.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-09-17 21:06:41 +00:00
parent 6ef909e45e
commit 08374eeaf9

View File

@ -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;