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. Built from https://develop.svn.wordpress.org/trunk@43984 git-svn-id: http://core.svn.wordpress.org/trunk@43816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b6b8a55fe
commit
32e9dea3ea
|
@ -2119,12 +2119,17 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
*/
|
*/
|
||||||
function _wp_add_global_attributes( $value ) {
|
function _wp_add_global_attributes( $value ) {
|
||||||
$global_attributes = array(
|
$global_attributes = array(
|
||||||
'class' => true,
|
'aria-describedby' => true,
|
||||||
'id' => true,
|
'aria-details' => true,
|
||||||
'style' => true,
|
'aria-label' => true,
|
||||||
'title' => true,
|
'aria-labelledby' => true,
|
||||||
'role' => true,
|
'aria-hidden' => true,
|
||||||
'data-*' => true,
|
'class' => true,
|
||||||
|
'id' => true,
|
||||||
|
'style' => true,
|
||||||
|
'title' => true,
|
||||||
|
'role' => true,
|
||||||
|
'data-*' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( true === $value ) {
|
if ( true === $value ) {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.1-alpha-43983';
|
$wp_version = '5.1-alpha-43984';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue