From 32e9dea3ea0a0a27ecae89b40c274420ea49a8ff Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 12 Dec 2018 03:15:24 +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`. 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 --- wp-includes/kses.php | 17 +++++++++++------ wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 3da5bf2624..8cc521346a 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -2119,12 +2119,17 @@ function safecss_filter_attr( $css, $deprecated = '' ) { */ function _wp_add_global_attributes( $value ) { $global_attributes = array( - 'class' => true, - 'id' => true, - 'style' => true, - 'title' => true, - 'role' => true, - 'data-*' => true, + 'aria-describedby' => true, + 'aria-details' => true, + 'aria-label' => true, + 'aria-labelledby' => true, + 'aria-hidden' => true, + 'class' => true, + 'id' => true, + 'style' => true, + 'title' => true, + 'role' => true, + 'data-*' => true, ); if ( true === $value ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index ceef9c5f2a..20f5d6d985 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.