@@ 986-991 (lines=6) @@ | ||
983 | (%d, %s, %s, %d)", $term_id, $name, $slug, $term_group) ); |
|
984 | ||
985 | $count = 0; |
|
986 | if ( !empty($category->category_count) ) { |
|
987 | $count = (int) $category->category_count; |
|
988 | $taxonomy = 'category'; |
|
989 | $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count) ); |
|
990 | $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; |
|
991 | } |
|
992 | ||
993 | if ( !empty($category->link_count) ) { |
|
994 | $count = (int) $category->link_count; |
|
@@ 993-998 (lines=6) @@ | ||
990 | $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; |
|
991 | } |
|
992 | ||
993 | if ( !empty($category->link_count) ) { |
|
994 | $count = (int) $category->link_count; |
|
995 | $taxonomy = 'link_category'; |
|
996 | $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count) ); |
|
997 | $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; |
|
998 | } |
|
999 | ||
1000 | if ( !empty($category->tag_count) ) { |
|
1001 | $have_tags = true; |