Formatting: Support aria content attributes.
Add `aria-controls`, `aria-expanded`, and `aria-current` to allowed attributes in KSES. Props crs1138, rsiddharth, mukesh27, SergeyBiryukov, joedolson, ryokuhi, peterwilsoncc, audrasjb, nataliat2004. Fixes #55370. Built from https://develop.svn.wordpress.org/trunk@55937 git-svn-id: http://core.svn.wordpress.org/trunk@55449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
888f082871
commit
2d2791b5be
|
@ -2608,6 +2608,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||
* @since 3.5.0
|
||||
* @since 5.0.0 Added support for `data-*` wildcard attributes.
|
||||
* @since 6.0.0 Added `dir`, `lang`, and `xml:lang` to global attributes.
|
||||
* @since 6.3.0 Added `aria-controls`, `aria-current`, and `aria-expanded` attributes.
|
||||
*
|
||||
* @access private
|
||||
* @ignore
|
||||
|
@ -2617,8 +2618,11 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||
*/
|
||||
function _wp_add_global_attributes( $value ) {
|
||||
$global_attributes = array(
|
||||
'aria-controls' => true,
|
||||
'aria-current' => true,
|
||||
'aria-describedby' => true,
|
||||
'aria-details' => true,
|
||||
'aria-expanded' => true,
|
||||
'aria-label' => true,
|
||||
'aria-labelledby' => true,
|
||||
'aria-hidden' => true,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55936';
|
||||
$wp_version = '6.3-alpha-55937';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue