Changeset 6753

Show
Ignore:
Timestamp:
02/07/08 19:22:59 (7 months ago)
Author:
ryan
Message:

Add post_password to export. Props Nazgul. fixes #4376

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/import/wordpress.php

    r6726 r6753  
    351351        $menu_order     = $this->get_tag( $post, 'wp:menu_order' ); 
    352352        $post_type      = $this->get_tag( $post, 'wp:post_type' ); 
     353        $post_password  = $this->get_tag( $post, 'wp:post_password' ); 
    353354        $guid           = $this->get_tag( $post, 'guid' ); 
    354355        $post_author    = $this->get_tag( $post, 'dc:creator' ); 
     
    401402            $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor 
    402403 
    403             $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'); 
     404            $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'); 
    404405            if ($post_type == 'attachment') { 
    405406                $remote_url = $this->get_tag( $post, 'wp:attachment_url' ); 
  • trunk/wp-admin/includes/export.php

    r6726 r6753  
    193193            setup_postdata($post); ?> 
    194194<item> 
    195 <title><?php the_title_rss() ?></title> 
     195<title><?php echo apply_filters('the_title_rss', $post->post_title); ?></title> 
    196196<link><?php the_permalink_rss() ?></link> 
    197197<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 
     
    212212<wp:menu_order><?php echo $post->menu_order; ?></wp:menu_order> 
    213213<wp:post_type><?php echo $post->post_type; ?></wp:post_type> 
     214<wp:post_password><?php echo $post->post_password; ?></wp:post_password> 
    214215<?php 
    215216if ($post->post_type == 'attachment') { ?>