Taxonomy: Fix typo in $aria_checked
variable name in Walker_Category_Checklist::start_el()
.
Props dhanendran. Fixes #40295. git-svn-id: https://develop.svn.wordpress.org/trunk@40348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8cc8a221fc
commit
21310844e3
@ -84,18 +84,18 @@ class Walker_Category_Checklist extends Walker {
|
|||||||
$args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];
|
$args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];
|
||||||
|
|
||||||
if ( ! empty( $args['list_only'] ) ) {
|
if ( ! empty( $args['list_only'] ) ) {
|
||||||
$aria_cheched = 'false';
|
$aria_checked = 'false';
|
||||||
$inner_class = 'category';
|
$inner_class = 'category';
|
||||||
|
|
||||||
if ( in_array( $category->term_id, $args['selected_cats'] ) ) {
|
if ( in_array( $category->term_id, $args['selected_cats'] ) ) {
|
||||||
$inner_class .= ' selected';
|
$inner_class .= ' selected';
|
||||||
$aria_cheched = 'true';
|
$aria_checked = 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/category-template.php */
|
/** This filter is documented in wp-includes/category-template.php */
|
||||||
$output .= "\n" . '<li' . $class . '>' .
|
$output .= "\n" . '<li' . $class . '>' .
|
||||||
'<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
|
'<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
|
||||||
' tabindex="0" role="checkbox" aria-checked="' . $aria_cheched . '">' .
|
' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
|
||||||
esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>';
|
esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>';
|
||||||
} else {
|
} else {
|
||||||
/** This filter is documented in wp-includes/category-template.php */
|
/** This filter is documented in wp-includes/category-template.php */
|
||||||
|
Loading…
Reference in New Issue
Block a user