Skip to content

Commit b330e88

Browse files
Fix formatting of comments array in export function
1 parent 6e82432 commit b330e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ function wxr_filter_postmeta( $return_me, $meta_key ) {
685685
endforeach;
686686

687687
$_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 ) );
688+
$comments = array_filter( array_map( 'get_comment', $_comments ) );
689689
foreach ( $comments as $c ) :
690690
?>
691691
<wp:comment>

0 commit comments

Comments
 (0)