Changeset 5247
- Timestamp:
- 04/12/2007 02:08:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r5246 r5247 294 294 $post_cats = array(); 295 295 foreach ($categories as $category) { 296 $cat_ID = (int) $wpdb->get_ results("SELECT *FROM $wpdb->categories WHERE cat_name = '$category'");296 $cat_ID = (int) $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE cat_name = '$category'"); 297 297 if ($cat_ID == 0) { 298 298 if ($cat_ID = wp_insert_category(array('cat_name' => $category))) {
Note: See TracChangeset
for help on using the changeset viewer.