Add some filtering. Props jhodgdon. fixes #5030

git-svn-id: https://develop.svn.wordpress.org/trunk@6147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-09-21 15:04:13 +00:00
parent c7dd7b6785
commit a83ced4491
2 changed files with 4 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ class WP_Categories_to_Tags {
$hier = _get_term_hierarchy('category');
foreach ($this->all_categories as $category) {
$category = sanitize_term( $category, 'category', 'display' );
if ((int) $category->parent == 0) {
print '<li><label><input type="checkbox" name="cats_to_convert[]" value="' . intval($category->term_id) . '" /> ' . $category->name . ' (' . $category->count . ')</label>';