Make WordPress Core

Ticket #3599: admin-functions.php.diff

File admin-functions.php.diff, 1.2 KB (added by jhodgdon, 18 years ago)

Patch for wp-admin/admin-functions.php, to fix part 4 (in one of the comments below/above)

  • E:/EclipseWork/WordPressDev/wp-admin/admin-functions.php

     
    658658
    659659function write_nested_categories( $categories ) {
    660660        foreach ( $categories as $category ) {
    661                 echo '<li id="category-', $category['cat_ID'], '"><label for="in-category-', $category['cat_ID'], '" class="selectit"><input value="', $category['cat_ID'], '" type="checkbox" name="post_category[]" id="in-category-', $category['cat_ID'], '"', ($category['checked'] ? ' checked="checked"' : "" ), '/> ', wp_specialchars( $category['cat_name'] ), "</label></li>";
     661                echo '<li id="category-', $category['cat_ID'], '"><label for="in-category-', $category['cat_ID'], '" class="selectit"><input value="', $category['cat_ID'], '" type="checkbox" name="post_category[]" id="in-category-', $category['cat_ID'], '"', ($category['checked'] ? ' checked="checked"' : "" ), '/> ', wp_specialchars( apply_filters('the_category', $category['cat_name'] )), "</label></li>";
    662662
    663663                if ( $category['children'] ) {
    664664                        echo "<ul>\n";