Make WordPress Core


Ignore:
Timestamp:
06/02/2007 02:53:09 AM (18 years ago)
Author:
ryan
Message:

Separate AJAX cat adder into post and link flavors. see #4189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r5622 r5637  
    158158        $name = wp_specialchars( apply_filters('the_category', $category->name));
    159159        $checked = in_array( $cat_id, $checked_categories );
    160         echo '<li id="category-', $cat_id, '"><label for="in-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="post_category[]" id="in-category-', $cat_id, '"', ($checked ? ' checked="checked"' : "" ), '/> ', $name, "</label></li>";
     160        echo '<li id="link-category-', $cat_id, '"><label for="in-link-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="link_category[]" id="in-link-category-', $cat_id, '"', ($checked ? ' checked="checked"' : "" ), '/> ', $name, "</label></li>";
    161161    }
    162162}
Note: See TracChangeset for help on using the changeset viewer.