Ticket #27550: 27550.diff
File 27550.diff, 619 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/post.php
2431 2431 add_post_meta($post_id,'_wp_trash_meta_time', time()); 2432 2432 2433 2433 $post['post_status'] = 'trash'; 2434 $post = wp_slash($post); 2434 2435 wp_insert_post($post); 2435 2436 2436 2437 wp_trash_post_comments($post_id); … … 2466 2467 delete_post_meta($post_id, '_wp_trash_meta_status'); 2467 2468 delete_post_meta($post_id, '_wp_trash_meta_time'); 2468 2469 2470 $post = wp_slash($post); 2469 2471 wp_insert_post($post); 2470 2472 2471 2473 wp_untrash_post_comments($post_id);