We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834aad6 commit 9560368Copy full SHA for 9560368
src/wp-admin/includes/export.php
@@ -685,7 +685,12 @@ function wxr_filter_postmeta( $return_me, $meta_key ) {
685
endforeach;
686
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_filter( array_map( 'get_comment', $_comments ) );
+ $comments = array_filter(
689
+ array_map( 'get_comment', $_comments ),
690
+ static function ( $comment ) {
691
+ return $comment instanceof WP_Comment;
692
+ }
693
+ );
694
foreach ( $comments as $c ) :
695
?>
696
<wp:comment>
0 commit comments