Make WordPress Core


Ignore:
Timestamp:
03/29/2017 11:21:26 AM (8 years ago)
Author:
SergeyBiryukov
Message:

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

Props dhanendran.
Fixes #40295.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-walker-category-checklist.php

    r34425 r40348  
    8585
    8686        if ( ! empty( $args['list_only'] ) ) {
    87             $aria_cheched = 'false';
     87            $aria_checked = 'false';
    8888            $inner_class = 'category';
    8989
    9090            if ( in_array( $category->term_id, $args['selected_cats'] ) ) {
    9191                $inner_class .= ' selected';
    92                 $aria_cheched = 'true';
     92                $aria_checked = 'true';
    9393            }
    9494
     
    9696            $output .= "\n" . '<li' . $class . '>' .
    9797                '<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
    98                 ' tabindex="0" role="checkbox" aria-checked="' . $aria_cheched . '">' .
     98                ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
    9999                esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>';
    100100        } else {
Note: See TracChangeset for help on using the changeset viewer.