X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/80b7979fccf09a75af3f4c111fa27060ae6dbf85..e08b42e8ad054ec67522d7ac1aaae5dc68cb3d01:/wp-admin/includes/export.php diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index e9c909d6..a7f20991 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -30,7 +30,7 @@ function export_wp( $args = array() ) { ); $args = wp_parse_args( $args, $defaults ); - do_action( 'export_wp' ); + do_action( 'export_wp', $args ); $sitename = sanitize_key( get_bloginfo( 'name' ) ); if ( ! empty($sitename) ) $sitename .= '.'; @@ -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 ) ) @@ -367,11 +367,12 @@ function export_wp( $args = array() ) { $is_sticky = is_sticky( $post->ID ) ? 1 : 0; ?> + <?php echo apply_filters( 'the_title_rss', $post->post_title ); ?> - - + + post_content ) ); ?> post_excerpt ) ); ?>