Ticket #40757: 40757.patch
File 40757.patch, 3.3 KB (added by , 8 years ago) |
---|
-
src/wp-admin/edit-tags.php
544 544 /* translators: %s: default category */ 545 545 __( 'Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category %s.' ), 546 546 /** This filter is documented in wp-includes/category-template.php */ 547 '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ) 547 '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ), '', '') . '</strong>' 548 548 ); 549 549 ?> 550 550 </p> -
src/wp-admin/includes/class-walker-category-checklist.php
96 96 $output .= "\n" . '<li' . $class . '>' . 97 97 '<div class="' . $inner_class . '" data-term-id=' . $category->term_id . 98 98 ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' . 99 esc_html( apply_filters( 'the_category', $category->name 99 esc_html( apply_filters( 'the_category', $category->name, '', '') ) . '</div>'; 100 100 } else { 101 101 /** This filter is documented in wp-includes/category-template.php */ 102 102 $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . … … 103 103 '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . 104 104 checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ) . 105 105 disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . 106 esc_html( apply_filters( 'the_category', $category->name 106 esc_html( apply_filters( 'the_category', $category->name, '', '') ) . '</label>'; 107 107 } 108 108 } 109 109 -
src/wp-admin/includes/template.php
214 214 <input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php disabled( ! current_user_can( $tax->cap->assign_terms ) ); ?> /> 215 215 <?php 216 216 /** This filter is documented in wp-includes/category-template.php */ 217 echo esc_html( apply_filters( 'the_category', $term->name 217 echo esc_html( apply_filters( 'the_category', $term->name, '', '') ); 218 218 ?> 219 219 </label> 220 220 </li> … … 255 255 $cat_id = $category->term_id; 256 256 257 257 /** This filter is documented in wp-includes/category-template.php */ 258 $name = esc_html( apply_filters( 'the_category', $category->name 258 $name = esc_html( apply_filters( 'the_category', $category->name, '', '') ); 259 259 $checked = in_array( $cat_id, $checked_categories ) ? ' checked="checked"' : ''; 260 260 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, '/> ', $name, "</label></li>"; 261 261 }