Changeset 5208

Show
Ignore:
Timestamp:
04/07/07 16:36:10 (1 year ago)
Author:
rob1n
Message:

Add menu_order and page_name to WP import/export. Props takaykister. fixes #4024

Files:

Legend:

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

    r4664 r5208  
    178178<wp:status><?php echo $post->post_status; ?></wp:status> 
    179179<wp:post_parent><?php echo $post->post_parent; ?></wp:post_parent> 
     180<wp:menu_order><?php echo $post->menu_order; ?></wp:menu_order> 
    180181<wp:post_type><?php echo $post->post_type; ?></wp:post_type> 
    181182<?php 
  • trunk/wp-admin/import/wordpress.php

    r5146 r5208  
    221221            $ping_status    = $this->get_tag( $post, 'wp:ping_status' ); 
    222222            $post_status    = $this->get_tag( $post, 'wp:status' ); 
     223            $post_name      = $this->get_tag( $post, 'wp:post_name' ); 
    223224            $post_parent    = $this->get_tag( $post, 'wp:post_parent' ); 
     225            $menu_order     = $this->get_tag( $post, 'wp:menu_order' ); 
    224226            $post_type      = $this->get_tag( $post, 'wp:post_type' ); 
    225227            $guid           = $this->get_tag( $post, 'guid' ); 
     
    250252                $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor 
    251253 
    252                 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_modified', 'post_modified_gmt', 'guid', 'post_parent', 'post_type'); 
     254                $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'post_name', 'comment_status', 'ping_status', 'post_modified', 'post_modified_gmt', 'guid', 'post_parent', 'menu_order', 'post_type'); 
    253255                $comment_post_ID = $post_id = wp_insert_post($postdata); 
    254256                // Add categories.