Taxonomy: Fix typo in $aria_checked variable name in Walker_Category_Checklist::start_el().

Props dhanendran.
Fixes #40295.
Built from https://develop.svn.wordpress.org/trunk@40348


git-svn-id: http://core.svn.wordpress.org/trunk@40255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-03-29 11:22:47 +00:00
parent 1c6111f3bb
commit 633ce094a1
2 changed files with 4 additions and 4 deletions

View File

@ -84,18 +84,18 @@ class Walker_Category_Checklist extends Walker {
$args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];
if ( ! empty( $args['list_only'] ) ) {
$aria_cheched = 'false';
$aria_checked = 'false';
$inner_class = 'category';
if ( in_array( $category->term_id, $args['selected_cats'] ) ) {
$inner_class .= ' selected';
$aria_cheched = 'true';
$aria_checked = 'true';
}
/** This filter is documented in wp-includes/category-template.php */
$output .= "\n" . '<li' . $class . '>' .
'<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>';
} else {
/** This filter is documented in wp-includes/category-template.php */

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40347';
$wp_version = '4.8-alpha-40348';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.