Make WordPress Core

Changeset 43731


Ignore:
Timestamp:
10/15/2018 11:43:40 PM (6 years ago)
Author:
peterwilsoncc
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.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/kses.php

    r43727 r43731  
    18371837function _wp_add_global_attributes( $value ) {
    18381838    $global_attributes = array(
     1839        'aria-describedby' => true,
     1840        'aria-details' => true,
     1841        'aria-label' => true,
     1842        'aria-labelledby' => true,
     1843        'aria-hidden' => true,
    18391844        'class' => true,
    18401845        'id' => true,
Note: See TracChangeset for help on using the changeset viewer.