X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..61343b82c4f0da4c68e4c6373daafff4a81efdd1:/wp-admin/includes/export.php?ds=sidebyside
diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php
index e9c909d6..ae08c3c1 100644
--- a/wp-admin/includes/export.php
+++ b/wp-admin/includes/export.php
@@ -238,7 +238,7 @@ function export_wp( $args = array() ) {
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 @@ function export_wp( $args = array() ) {
* @since 2.3.0
*/
function wxr_post_taxonomy() {
- global $post;
+ $post = get_post();
$taxonomies = get_object_taxonomies( $post->post_type );
if ( empty( $taxonomies ) )
@@ -371,7 +371,7 @@ function export_wp( $args = array() ) {
-
+
post_content ) ); ?>
post_excerpt ) ); ?>