Ticket #40145: 40145.patch
File 40145.patch, 490 bytes (added by , 5 years ago) |
---|
-
wp-includes/post.php
diff --git a/wp-includes/post.php b/wp-includes/post.php index ac29d9628f..476f284f63 100644
a b function wp_trash_post( $post_id = 0 ) { 2979 2979 */ 2980 2980 do_action( 'wp_trash_post', $post_id ); 2981 2981 2982 if ( wp_is_post_revision( $post_id ) ) { 2983 return wp_delete_post( $post_id, true ); 2984 } 2985 2982 2986 add_post_meta( $post_id, '_wp_trash_meta_status', $post->post_status ); 2983 2987 add_post_meta( $post_id, '_wp_trash_meta_time', time() ); 2984 2988