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
This commit is contained in:
parent
81410c1a67
commit
a4d00eca9a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user