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
This commit is contained in:
Sergey Biryukov 2018-03-27 00:54:34 +00:00
parent ff314fd156
commit 0e9549d424
2 changed files with 4 additions and 2 deletions

View File

@ -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',

View File

@ -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.