Skip to content

Commit 6f73765

Browse files
Merge pull request #146 from abhijitrakas/GH-143
Fix category list count
2 parents e63149c + de4d8b5 commit 6f73765

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)