WordPress.org

Make WordPress Core

Ticket #16479: 16479.diff

File 16479.diff, 487 bytes (added by nacin, 3 years ago)
  • wp-admin/includes/export.php

     
    241241                foreach ( (array) $results as $result ) 
    242242                        $authors[] = get_userdata( $result->post_author ); 
    243243 
     244                $authors = array_filter( $authors ); 
     245 
    244246                foreach( $authors as $author ) { 
    245247                        echo "\t<wp:author>"; 
    246248                        echo '<wp:author_id>' . $author->ID . '</wp:author_id>';