KSES: Add opacity to the list of safe CSS properties.

Original PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/59891 #59891 Update overlay step function in cover block]

Reference: [https://developer.mozilla.org/en-US/docs/Web/CSS/opacity MDN Web Docs: opacity].

Props sunil25393, wildworks, poena, Mamaduka, presstoke.
Fixes #61536.
Built from https://develop.svn.wordpress.org/trunk@58709


git-svn-id: http://core.svn.wordpress.org/trunk@58111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-07-12 03:36:15 +00:00
parent 981871c922
commit 1287cb6181
2 changed files with 2 additions and 1 deletions

View File

@ -2526,6 +2526,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'list-style-type', 'list-style-type',
'object-fit', 'object-fit',
'object-position', 'object-position',
'opacity',
'overflow', 'overflow',
'vertical-align', 'vertical-align',
'writing-mode', 'writing-mode',

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.7-alpha-58708'; $wp_version = '6.7-alpha-58709';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.