Make WordPress Core

Ticket #55370: 55370.1.diff

File 55370.1.diff, 1.7 KB (added by joedolson, 2 years ago)

Refreshed patch

  • src/wp-includes/kses.php

     
    26082608 * @since 3.5.0
    26092609 * @since 5.0.0 Added support for `data-*` wildcard attributes.
    26102610 * @since 6.0.0 Added `dir`, `lang`, and `xml:lang` to global attributes.
     2611 * @since 6.3.0 Added `aria-controls`, `aria-current`, and `aria-expanded` attributes.
    26112612 *
    26122613 * @access private
    26132614 * @ignore
     
    26172618 */
    26182619function _wp_add_global_attributes( $value ) {
    26192620        $global_attributes = array(
     2621                'aria-controls'    => true,
     2622                'aria-current'     => true,
    26202623                'aria-describedby' => true,
    26212624                'aria-details'     => true,
     2625                'aria-expanded'    => true,
    26222626                'aria-label'       => true,
    26232627                'aria-labelledby'  => true,
    26242628                'aria-hidden'      => true,