WordPress.org

Make WordPress Core

Changeset 43984


Ignore:
Timestamp:
12/12/2018 03:14:47 AM (7 months ago)
Author:
jeremyfelt
Message:

KSES: Add selected ARIA attributes support.

Allow low-privileged users to use the ARIA attributes aria-describedby, aria-details, aria-label, aria-labelledby and aria-hidden.

Merges [43731] to trunk.

Props mattheu, swissspidy, rianrietveld, afercia, GaryJ.
See #30421.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/kses.php

    r43981 r43984  
    21202120function _wp_add_global_attributes( $value ) {
    21212121    $global_attributes = array(
    2122         'class'  => true,
    2123         'id'     => true,
    2124         'style'  => true,
    2125         'title'  => true,
    2126         'role'   => true,
    2127         'data-*' => true,
     2122        'aria-describedby' => true,
     2123        'aria-details'     => true,
     2124        'aria-label'       => true,
     2125        'aria-labelledby'  => true,
     2126        'aria-hidden'      => true,
     2127        'class'            => true,
     2128        'id'               => true,
     2129        'style'            => true,
     2130        'title'            => true,
     2131        'role'             => true,
     2132        'data-*'           => true,
    21282133    );
    21292134
Note: See TracChangeset for help on using the changeset viewer.