Changeset 41221
- Timestamp:
- 08/03/2017 04:12:25 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r40655 r41221 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') ) ) . '</strong>'547 '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ), '', '' ) . '</strong>' 548 548 ); 549 549 ?> -
trunk/src/wp-admin/includes/class-walker-category-checklist.php
r40348 r41221 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 ) ) . '</div>';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 */ … … 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 ) ) . '</label>';106 esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>'; 107 107 } 108 108 } -
trunk/src/wp-admin/includes/template.php
r41184 r41221 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> … … 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>"; -
trunk/src/wp-includes/category-template.php
r41033 r41221 387 387 * @see wp_dropdown_categories() 388 388 * 389 * @param string $element Taxonomy element to list. 389 * @param string $element Category name. 390 * @param WP_Term|null $category The category object, or null if there's no corresponding category. 390 391 */ 391 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'] );392 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'], null ); 392 393 $output .= "\t<option value='" . esc_attr( $option_none_value ) . "' selected='selected'>$show_option_none</option>\n"; 393 394 } … … 398 399 399 400 /** This filter is documented in wp-includes/category-template.php */ 400 $show_option_all = apply_filters( 'list_cats', $r['show_option_all'] );401 $show_option_all = apply_filters( 'list_cats', $r['show_option_all'], null ); 401 402 $selected = ( '0' === strval($r['selected']) ) ? " selected='selected'" : ''; 402 403 $output .= "\t<option value='0'$selected>$show_option_all</option>\n"; … … 406 407 407 408 /** This filter is documented in wp-includes/category-template.php */ 408 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'] );409 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'], null ); 409 410 $selected = selected( $option_none_value, $r['selected'], false ); 410 411 $output .= "\t<option value='" . esc_attr( $option_none_value ) . "'$selected>$show_option_none</option>\n";
Note: See TracChangeset
for help on using the changeset viewer.