Make WordPress Core


Ignore:
Timestamp:
09/21/2007 03:04:13 PM (17 years ago)
Author:
ryan
Message:

Add some filtering. Props jhodgdon. fixes #5030

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wp-cat2tag.php

    r6080 r6147  
    4949
    5050        foreach ($this->all_categories as $category) {
     51            $category = sanitize_term( $category, 'category', 'display' );
     52       
    5153            if ((int) $category->parent == 0) {
    5254                print '<li><label><input type="checkbox" name="cats_to_convert[]" value="' . intval($category->term_id) . '" /> ' . $category->name . ' (' . $category->count . ')</label>';
Note: See TracChangeset for help on using the changeset viewer.