Ticket #23022: 23022.2.patch
File 23022.2.patch, 761 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
2406 2406 2407 2407 do_action('wp_trash_post', $post_id); 2408 2408 2409 add_post_meta($post_id,'_wp_trash_meta_status', $post['post_status']);2410 2409 add_post_meta($post_id,'_wp_trash_meta_time', time()); 2411 2410 2412 2411 $post['post_status'] = 'trash'; … … 2438 2437 2439 2438 do_action('untrash_post', $post_id); 2440 2439 2441 $post _status = get_post_meta($post_id, '_wp_trash_meta_status', true);2440 $post['post_status'] = 'draft'; 2442 2441 2443 $post['post_status'] = $post_status;2444 2445 delete_post_meta($post_id, '_wp_trash_meta_status');2446 2442 delete_post_meta($post_id, '_wp_trash_meta_time'); 2447 2443 2448 2444 wp_insert_post($post);