WordPress.org

Make WordPress Core

Changeset 17415


Ignore:
Timestamp:
02/07/2011 07:58:41 PM (7 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

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

    r17108 r17415  
    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.