From f7ace6f1b24a2342b37adc42768f9f13e8a6d5e7 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 15 Oct 2018 23:44:26 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 64acf7ff7d..99fdc6c9b1 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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, diff --git a/wp-includes/version.php b/wp-includes/version.php index a9d95e710d..aa0851426e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.