Skip to content

Commit de4d8b5

Browse files
committed
Fix category list count.
1 parent e63149c commit de4d8b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Site_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function _insert_default_terms() {
132132
}
133133

134134
$wpdb->insert( $wpdb->terms, array('term_id' => $cat_id, 'name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) );
135-
$wpdb->insert( $wpdb->term_taxonomy, array('term_id' => $cat_id, 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 1));
135+
$wpdb->insert( $wpdb->term_taxonomy, array('term_id' => $cat_id, 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 0));
136136
}
137137

138138
/**

0 commit comments

Comments
 (0)