From 2d2791b5be8bc517579fe4897a8ea9f9b572127f Mon Sep 17 00:00:00 2001 From: joedolson Date: Sun, 18 Jun 2023 16:41:20 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 0ab8c3350d..c889299436 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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, diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b55cb3232..ba0163b923 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.