Make WordPress Core


Ignore:
Timestamp:
04/12/2007 05:55:34 AM (19 years ago)
Author:
rob1n
Message:

Some fixes for another fix. Props takayukister. fixes #4040

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r5249 r5252  
    297297                                        $cat_ID = (int) $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE cat_name = '$category'");
    298298                                        if ($cat_ID == 0) {
    299                                                 if ($cat_ID = wp_insert_category(array('cat_name' => $category))) {
    300                                                         $post_cats[] = $cat_ID;
    301                                                 }
     299                                                $cat_ID = wp_insert_category(array('cat_name' => $category));
    302300                                        }
     301                                        $post_cats[] = $cat_ID;
    303302                                }
    304                                 wp_set_post_categories($post_ID, $post_cats);
     303                                wp_set_post_categories($post_id, $post_cats);
    305304                        }       
    306305                }
Note: See TracChangeset for help on using the changeset viewer.