mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user