Changeset 52015
- Timestamp:
- 11/04/2021 11:55:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r51965 r52015 3237 3237 wp_defer_comment_counting( true ); 3238 3238 3239 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ", $postid ) );3239 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ORDER BY comment_ID DESC", $postid ) ); 3240 3240 foreach ( $comment_ids as $comment_id ) { 3241 3241 wp_delete_comment( $comment_id, true ); … … 6195 6195 wp_defer_comment_counting( true ); 6196 6196 6197 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ", $post_id ) );6197 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d ORDER BY comment_ID DESC", $post_id ) ); 6198 6198 foreach ( $comment_ids as $comment_id ) { 6199 6199 wp_delete_comment( $comment_id, true );
Note: See TracChangeset
for help on using the changeset viewer.