Changeset 5554
- Timestamp:
- 05/26/2007 06:59:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wp-cat2tag.php
r5553 r5554 120 120 121 121 // Set the category itself to $type from above 122 $wpdb->query("UPDATE $wpdb->term_taxonomy SET taxonomy = ' $type' WHERE term_id = '{$category->term_id}' AND taxonomy = 'category'");122 $wpdb->query("UPDATE $wpdb->term_taxonomy SET taxonomy = 'post_tag' WHERE term_id = '{$category->term_id}' AND taxonomy = 'category'"); 123 123 124 124 // Set all parents to 0 (root-level) if their parent was the converted tag … … 154 154 global $wpdb; 155 155 156 $wpdb->query("UPDATE $wpdb->term_taxonomy SET taxonomy = ' $type', parent = 0 WHERE taxonomy = 'category'");156 $wpdb->query("UPDATE $wpdb->term_taxonomy SET taxonomy = 'post_tag', parent = 0 WHERE taxonomy = 'category'"); 157 157 clean_category_cache($category->term_id); 158 158 }
Note: See TracChangeset
for help on using the changeset viewer.