Changeset 5643
- Timestamp:
- 06/03/2007 06:57:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r5621 r5643 608 608 $wpdb->query("INSERT INTO $wpdb->terms (term_id, name, slug, term_group) VALUES ('$term_id', '$name', '$slug', '$term_group')"); 609 609 610 $count = 0; 610 611 if ( !empty($category->category_count) ) { 611 612 $count = (int) $category->category_count; … … 613 614 $wpdb->query("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ('$term_id', '$taxonomy', '$description', '$parent', '$count')"); 614 615 $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; 615 } else if ( !empty($category->link_count) ) { 616 } 617 618 if ( !empty($category->link_count) ) { 616 619 $count = (int) $category->link_count; 617 620 $taxonomy = 'link_category'; 618 621 $wpdb->query("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ('$term_id', '$taxonomy', '$description', '$parent', '$count')"); 619 622 $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; 620 } else if ( !empty($category->tag_count) ) { 623 } 624 625 if ( !empty($category->tag_count) ) { 621 626 $count = (int) $category->tag_count; 622 627 $taxonomy = 'post_tag'; 623 628 $wpdb->query("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ('$term_id', '$taxonomy', '$description', '$parent', '$count')"); 624 629 $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; 625 } else { 630 } 631 632 if ( empty($count) ) { 626 633 $count = 0; 627 634 $taxonomy = 'category';
Note: See TracChangeset
for help on using the changeset viewer.