From 3dabc4a39e961e3afe453304acd98771687d4259 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Mon, 7 Feb 2011 19:58:41 +0000 Subject: [PATCH] Skip authors that no longer exist when doing an export. props nacin. fixes #16479 git-svn-id: http://svn.automattic.com/wordpress/trunk@17415 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index baa133f29..2efd0405a 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -241,6 +241,8 @@ function export_wp( $args = array() ) { foreach ( (array) $results as $result ) $authors[] = get_userdata( $result->post_author ); + $authors = array_filter( $authors ); + foreach( $authors as $author ) { echo "\t"; echo '' . $author->ID . '';