From 47faf261ba69a3a0b8e5766fead14ce8319dddda Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 7 Feb 2008 19:22:59 +0000 Subject: [PATCH] Add post_password to export. Props Nazgul. fixes #4376 git-svn-id: http://svn.automattic.com/wordpress/trunk@6753 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 3 ++- wp-admin/includes/export.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 235d47c495..8b69bfaccc 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -350,6 +350,7 @@ class WP_Import { $post_parent = $this->get_tag( $post, 'wp:post_parent' ); $menu_order = $this->get_tag( $post, 'wp:menu_order' ); $post_type = $this->get_tag( $post, 'wp:post_type' ); + $post_password = $this->get_tag( $post, 'wp:post_password' ); $guid = $this->get_tag( $post, 'guid' ); $post_author = $this->get_tag( $post, 'dc:creator' ); @@ -400,7 +401,7 @@ class WP_Import { $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor - $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type'); + $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type', 'post_password'); if ($post_type == 'attachment') { $remote_url = $this->get_tag( $post, 'wp:attachment_url' ); if ( !$remote_url ) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 16282641bb..a712177f22 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -192,7 +192,7 @@ echo '\n"; foreach ($posts as $post) { setup_postdata($post); ?> -<?php the_title_rss() ?> +<?php echo apply_filters('the_title_rss', $post->post_title); ?> @@ -211,6 +211,7 @@ echo '\n"; post_parent; ?> menu_order; ?> post_type; ?> +post_password; ?> post_type == 'attachment') { ?> ID); ?>