Ticket #40295: 40295.patch
File 40295.patch, 1.2 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/class-walker-category-checklist.php
84 84 $args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats']; 85 85 86 86 if ( ! empty( $args['list_only'] ) ) { 87 $aria_chec hed = 'false';87 $aria_checked = 'false'; 88 88 $inner_class = 'category'; 89 89 90 90 if ( in_array( $category->term_id, $args['selected_cats'] ) ) { 91 91 $inner_class .= ' selected'; 92 $aria_chec hed = 'true';92 $aria_checked = 'true'; 93 93 } 94 94 95 95 /** This filter is documented in wp-includes/category-template.php */ 96 96 $output .= "\n" . '<li' . $class . '>' . 97 97 '<div class="' . $inner_class . '" data-term-id=' . $category->term_id . 98 ' tabindex="0" role="checkbox" aria-checked="' . $aria_chec hed . '">' .98 ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' . 99 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 */