WordPress.org

Make WordPress Core

Changeset 17416


Ignore:
Timestamp:
02/07/11 20:08:18 (5 years ago)
Author:
markjaquith
Message:

Skip authors that no longer exist when doing an export. props nacin. fixes #16479 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-admin/includes/export.php

    r17108 r17416  
    241241        foreach ( (array) $results as $result ) 
    242242            $authors[] = get_userdata( $result->post_author ); 
     243 
     244        $authors = array_filter( $authors ); 
    243245 
    244246        foreach( $authors as $author ) { 
Note: See TracChangeset for help on using the changeset viewer.