WordPress.org

Make WordPress Core

Ticket #9012: switch-to-in-category.patch

File switch-to-in-category.patch, 963 bytes (added by chmac, 6 years ago)

Switch the ids to in-category

  • wp-admin/includes/template.php

     
    576576                $cat_id = $category->term_id; 
    577577                $name = wp_specialchars( apply_filters('the_category', $category->name)); 
    578578                $checked = in_array( $cat_id, $checked_categories ); 
    579                 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>"; 
     579                echo '<li id="link-category-', $cat_id, '"><label for="in-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="link_category[]" id="in-category-', $cat_id, '"', ($checked ? ' checked="checked"' : "" ), '/> ', $name, "</label></li>"; 
    580580        } 
    581581} 
    582582