mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
KSES: Add object-position
to the list of safe CSS properties.
This resolves an issue with the Cover block, where the `object-position` property is removed from the content when a non-admin user saves the post, leading to block recovery loop. Props Mamaduka, aristath. Fixes #52961. Built from https://develop.svn.wordpress.org/trunk@50634 git-svn-id: http://core.svn.wordpress.org/trunk@50246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5767dbd5ff
commit
526dfa8b12
@ -2171,6 +2171,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||
* @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties.
|
||||
* Extend `background-*` support of individual properties.
|
||||
* @since 5.3.1 Added support for gradient backgrounds.
|
||||
* @since 5.7.1 Added support for `object-position`.
|
||||
*
|
||||
* @param string[] $attr Array of allowed CSS attributes.
|
||||
*/
|
||||
@ -2284,6 +2285,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||
'direction',
|
||||
'float',
|
||||
'list-style-type',
|
||||
'object-position',
|
||||
'overflow',
|
||||
'vertical-align',
|
||||
)
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-alpha-50633';
|
||||
$wp_version = '5.8-alpha-50634';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user