Changeset 45724
- Timestamp:
- 08/03/2019 03:46:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r45674 r45724 3060 3060 add_post_meta( $post_id, '_wp_trash_meta_time', time() ); 3061 3061 3062 wp_update_post(3062 $post_updated = wp_update_post( 3063 3063 array( 3064 3064 'ID' => $post_id, … … 3066 3066 ) 3067 3067 ); 3068 3069 if ( ! $post_updated ) { 3070 return false; 3071 } 3068 3072 3069 3073 wp_trash_post_comments( $post_id ); … … 3127 3131 delete_post_meta( $post_id, '_wp_trash_meta_time' ); 3128 3132 3129 wp_update_post(3133 $post_updated = wp_update_post( 3130 3134 array( 3131 3135 'ID' => $post_id, … … 3133 3137 ) 3134 3138 ); 3139 3140 if ( ! $post_updated ) { 3141 return false; 3142 } 3135 3143 3136 3144 wp_untrash_post_comments( $post_id );
Note: See TracChangeset
for help on using the changeset viewer.