Ticket #2727: 2727.diff
| File 2727.diff, 949 bytes (added by , 20 years ago) |
|---|
-
wp-admin/import/wordpress.php
220 220 $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'); 221 221 $comment_post_ID = $post_id = wp_insert_post($postdata); 222 222 // Add categories. 223 if (0 != count($ post_categories)) {224 wp_create_categories($ post_categories, $post_id);223 if (0 != count($categories)) { 224 wp_create_categories($categories, $post_id); 225 225 } 226 226 } 227 227 … … 308 308 309 309 register_importer('wordpress', 'WordPress', __('Import posts from a WordPress export file'), array ($wp_import, 'dispatch')); 310 310 311 ?> 312 No newline at end of file 311 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)