Formatting: Permit use of text-transform in safecss_filter_attr().

Add unit tests for `safecss_filter_attr()`.

Props birgire, juiiee8487, danielbachhuber.
Fixes #42729.

git-svn-id: https://develop.svn.wordpress.org/trunk@42880 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2018-03-27 00:53:20 +00:00
parent f44423cfb9
commit c8fa6497aa
2 changed files with 96 additions and 1 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',