From 0e9549d4245f301d519b45f1b0cc8615182f55a6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 27 Mar 2018 00:54:34 +0000 Subject: [PATCH] Formatting: Permit use of `text-transform` in `safecss_filter_attr()`. Add unit tests for `safecss_filter_attr()`. Props birgire, juiiee8487, danielbachhuber. Fixes #42729. Built from https://develop.svn.wordpress.org/trunk@42880 git-svn-id: http://core.svn.wordpress.org/trunk@42710 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 265fb748ac..93bb4abc1d 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -1964,6 +1964,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { * @since 2.8.1 * @since 4.4.0 Added support for `min-height`, `max-height`, `min-width`, and `max-width`. * @since 4.6.0 Added support for `list-style-type`. + * @since 5.0.0 Added support for `text-transform`. * * @param array $attr List of allowed CSS attributes. */ @@ -2006,9 +2007,10 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'font-weight', 'letter-spacing', 'line-height', + 'text-align', 'text-decoration', 'text-indent', - 'text-align', + 'text-transform', 'height', 'min-height', diff --git a/wp-includes/version.php b/wp-includes/version.php index f7885d8a42..e6d58d8b32 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42879'; +$wp_version = '5.0-alpha-42880'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.