Ticket #47773: 47773.diff
File 47773.diff, 683 bytes (added by , 6 years ago) |
---|
-
wp-includes/post.php
3059 3059 add_post_meta( $post_id, '_wp_trash_meta_status', $post->post_status ); 3060 3060 add_post_meta( $post_id, '_wp_trash_meta_time', time() ); 3061 3061 3062 wp_update_post(3062 $update_post_status = wp_update_post( 3063 3063 array( 3064 3064 'ID' => $post_id, 3065 3065 'post_status' => 'trash', … … 3066 3066 ) 3067 3067 ); 3068 3068 3069 // Check if post status not updated. 3070 if ( is_wp_error( $update_post_status ) || 0 === $update_post_status ) { 3071 return false; 3072 } 3073 3069 3074 wp_trash_post_comments( $post_id ); 3070 3075 3071 3076 /**