Changeset 5208
- Timestamp:
- 04/07/07 16:36:10 (1 year ago)
- Files:
-
- trunk/wp-admin/export.php (modified) (1 diff)
- trunk/wp-admin/import/wordpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/export.php
r4664 r5208 178 178 <wp:status><?php echo $post->post_status; ?></wp:status> 179 179 <wp:post_parent><?php echo $post->post_parent; ?></wp:post_parent> 180 <wp:menu_order><?php echo $post->menu_order; ?></wp:menu_order> 180 181 <wp:post_type><?php echo $post->post_type; ?></wp:post_type> 181 182 <?php trunk/wp-admin/import/wordpress.php
r5146 r5208 221 221 $ping_status = $this->get_tag( $post, 'wp:ping_status' ); 222 222 $post_status = $this->get_tag( $post, 'wp:status' ); 223 $post_name = $this->get_tag( $post, 'wp:post_name' ); 223 224 $post_parent = $this->get_tag( $post, 'wp:post_parent' ); 225 $menu_order = $this->get_tag( $post, 'wp:menu_order' ); 224 226 $post_type = $this->get_tag( $post, 'wp:post_type' ); 225 227 $guid = $this->get_tag( $post, 'guid' ); … … 250 252 $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor 251 253 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'); 253 255 $comment_post_ID = $post_id = wp_insert_post($postdata); 254 256 // Add categories.
