diff --git a/wp-includes/post.php b/wp-includes/post.php
index 54f17f4..6b4aa26 100644
a
|
b
|
function wp_untrash_post($post_id = 0) { |
2438 | 2438 | |
2439 | 2439 | do_action('untrash_post', $post_id); |
2440 | 2440 | |
2441 | | $post_status = get_post_meta($post_id, '_wp_trash_meta_status', true); |
| 2441 | $post['post_status'] = 'draft'; |
2442 | 2442 | |
2443 | | $post['post_status'] = $post_status; |
2444 | | |
2445 | | delete_post_meta($post_id, '_wp_trash_meta_status'); |
2446 | 2443 | delete_post_meta($post_id, '_wp_trash_meta_time'); |
2447 | 2444 | |
2448 | 2445 | wp_insert_post($post); |