Changeset 61369 for trunk/src/wp-admin/includes/export.php
- Timestamp:
- 12/11/2025 01:53:26 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/export.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r60632 r61369 686 686 687 687 $_comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); 688 $comments = array_map( 'get_comment', $_comments ); 688 $comments = array_filter( 689 array_map( 'get_comment', $_comments ), 690 static function ( $comment ) { 691 return $comment instanceof WP_Comment; 692 } 693 ); 689 694 foreach ( $comments as $c ) : 690 695 ?>
Note: See TracChangeset
for help on using the changeset viewer.