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. Built from https://develop.svn.wordpress.org/branches/5.0@43731 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
760b131bec
commit
f7ace6f1b2
|
@ -1836,6 +1836,11 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||
*/
|
||||
function _wp_add_global_attributes( $value ) {
|
||||
$global_attributes = array(
|
||||
'aria-describedby' => true,
|
||||
'aria-details' => true,
|
||||
'aria-label' => true,
|
||||
'aria-labelledby' => true,
|
||||
'aria-hidden' => true,
|
||||
'class' => true,
|
||||
'id' => true,
|
||||
'style' => true,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43730';
|
||||
$wp_version = '5.0-alpha-43731';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue