diff -r f507feede89a -r 09a1c134465b web/wp-admin/includes/export.php --- a/web/wp-admin/includes/export.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-admin/includes/export.php Wed Dec 19 17:46:52 2012 -0800 @@ -238,7 +238,7 @@ global $wpdb; $authors = array(); - $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts" ); + $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft'" ); foreach ( (array) $results as $result ) $authors[] = get_userdata( $result->post_author ); @@ -279,7 +279,7 @@ * @since 2.3.0 */ function wxr_post_taxonomy() { - global $post; + $post = get_post(); $taxonomies = get_object_taxonomies( $post->post_type ); if ( empty( $taxonomies ) )