Changeset 11774
- Timestamp:
- 08/04/2009 09:46:42 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
import/wordpress.php (modified) (2 diffs)
-
includes/export.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r11321 r11774 379 379 $post_type = $this->get_tag( $post, 'wp:post_type' ); 380 380 $post_password = $this->get_tag( $post, 'wp:post_password' ); 381 $is_sticky = $this->get_tag( $post, 'wp:is_sticky' ); 381 382 $guid = $this->get_tag( $post, 'guid' ); 382 383 $post_author = $this->get_tag( $post, 'dc:creator' ); … … 449 450 printf(__('Importing post <em>%s</em>...'), stripslashes($post_title)); 450 451 $comment_post_ID = $post_id = wp_insert_post($postdata); 452 if ( $post_id && $is_sticky == 1 ) 453 stick_post( $post_id ); 454 451 455 } 452 456 -
trunk/wp-admin/includes/export.php
r11380 r11774 269 269 if ( 'revision' == $post->post_type ) 270 270 continue; 271 setup_postdata($post); ?> 271 setup_postdata($post); 272 273 $is_sticky = 0; 274 if ( is_sticky( $post->ID ) ) 275 $is_sticky = 1; 276 277 ?> 272 278 <item> 273 279 <title><?php echo apply_filters('the_title_rss', $post->post_title); ?></title> … … 292 298 <wp:post_type><?php echo $post->post_type; ?></wp:post_type> 293 299 <wp:post_password><?php echo $post->post_password; ?></wp:post_password> 300 <wp:is_sticky><?php echo $is_sticky; ?></wp:is_sticky> 294 301 <?php 295 302 if ($post->post_type == 'attachment') { ?>
Note: See TracChangeset
for help on using the changeset viewer.