Make WordPress Core


Ignore:
Timestamp:
02/07/2008 07:22:59 PM (17 years ago)
Author:
ryan
Message:

Add post_password to export. Props Nazgul. fixes #4376

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' );
Note: See TracChangeset for help on using the changeset viewer.