KSES: Add background-repeat to the list of safe CSS properties.

Follow-up to [45242], [46235].

Props andrewserong, ramonopoly, mukesh27.
Fixes #60132.

git-svn-id: https://develop.svn.wordpress.org/trunk@57228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-12-26 14:22:45 +00:00
parent e9f335df2f
commit 0e28444795
2 changed files with 9 additions and 0 deletions

View File

@@ -2303,6 +2303,7 @@ function kses_init() {
* @since 6.3.0 Extended support for `filter` to accept a URL and added support for repeat().
* Added support for `box-shadow`.
* @since 6.4.0 Added support for `writing-mode`.
* @since 6.5.0 Added support for `background-repeat`.
*
* @param string $css A string of CSS rules.
* @param string $deprecated Not used.
@@ -2334,6 +2335,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'background-color',
'background-image',
'background-position',
'background-repeat',
'background-size',
'background-attachment',
'background-blend-mode',