Ticket #10462: wp-admin--import--wordpress.php.diff
| File wp-admin--import--wordpress.php.diff, 875 bytes (added by , 17 years ago) |
|---|
-
wp-admin/import/wordpress.php
378 378 $menu_order = $this->get_tag( $post, 'wp:menu_order' ); 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' ); 383 384 … … 448 449 else { 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 453 457 if ( is_wp_error( $post_id ) )