Make WordPress Core

Ticket #55370: 55370.diff

File 55370.diff, 853 bytes (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/kses.php

     
    26062606 * @since 3.5.0
    26072607 * @since 5.0.0 Added support for `data-*` wildcard attributes.
    26082608 * @since 6.0.0 Added `dir`, `lang`, and `xml:lang` to global attributes.
     2609 * @since 6.3.0 Added `aria-controls`, `aria-current`, and `aria-expanded` attributes.
    26092610 *
    26102611 * @access private
    26112612 * @ignore
     
    26152616 */
    26162617function _wp_add_global_attributes( $value ) {
    26172618        $global_attributes = array(
     2619                'aria-controls'    => true,
     2620                'aria-current'     => true,
    26182621                'aria-describedby' => true,
    26192622                'aria-details'     => true,
     2623                'aria-expanded'    => true,
    26202624                'aria-label'       => true,
    26212625                'aria-labelledby'  => true,
    26222626                'aria-hidden'      => true,