Ticket #12871: export.diff
File export.diff, 969 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/export.php
394 394 <wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type> 395 395 <wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent> 396 396 <wp:comment_user_id><?php echo $c->user_id; ?></wp:comment_user_id> 397 </wp:comment> 397 <?php 398 $commentmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); 399 if ( $commentmeta ) { 400 ?> 401 <?php foreach( $commentmeta as $meta ) { ?> 402 <wp:comment_meta> 403 <wp:c_meta_key><?php echo $meta->meta_key; ?></wp:c_meta_key> 404 <wp:c_meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:c_meta_value> 405 </wp:comment_meta> 398 406 <?php } } ?> 407 </wp:comment> 408 <?php } } ?> 399 409 </item> 400 410 <?php 401 411 }