KSES: Add `background-position` and `grid-template-columns` as safe CSS properties.
Props aduth. Fixes #46597. git-svn-id: https://develop.svn.wordpress.org/trunk@45242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25bc196513
commit
c1f17e3fe9
|
@ -2062,6 +2062,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
* @since 4.6.0 Added support for `list-style-type`.
|
* @since 4.6.0 Added support for `list-style-type`.
|
||||||
* @since 5.0.0 Added support for `background-image`.
|
* @since 5.0.0 Added support for `background-image`.
|
||||||
* @since 5.1.0 Added support for `text-transform`.
|
* @since 5.1.0 Added support for `text-transform`.
|
||||||
|
* @since 5.2.0 Added support for `background-position` and `grid-template-columns`
|
||||||
*
|
*
|
||||||
* @param string[] $attr Array of allowed CSS attributes.
|
* @param string[] $attr Array of allowed CSS attributes.
|
||||||
*/
|
*/
|
||||||
|
@ -2071,6 +2072,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
'background',
|
'background',
|
||||||
'background-color',
|
'background-color',
|
||||||
'background-image',
|
'background-image',
|
||||||
|
'background-position',
|
||||||
|
|
||||||
'border',
|
'border',
|
||||||
'border-width',
|
'border-width',
|
||||||
|
@ -2138,6 +2140,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
'overflow',
|
'overflow',
|
||||||
'vertical-align',
|
'vertical-align',
|
||||||
'list-style-type',
|
'list-style-type',
|
||||||
|
'grid-template-columns',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue