Media: Add `object-fit` to the allowed list of CSS properties.

This resolves a bug in Featured Image blocks where `object-fit` was being removed during the `render_callback`.

Props raduiason, pbiron, kebbet, SergeyBiryukov, bernhard-reiter, ironprogrammer, xknown, audrasjb, ckanderson22, ivanjeronimo, seriouslysenpai.
Fixes #56855.
Built from https://develop.svn.wordpress.org/trunk@54675


git-svn-id: http://core.svn.wordpress.org/trunk@54227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
davidbaumwald 2022-10-24 15:36:13 +00:00
parent 03a200a9c0
commit a5213e123f
2 changed files with 2 additions and 1 deletions

View File

@ -2423,6 +2423,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'direction', 'direction',
'float', 'float',
'list-style-type', 'list-style-type',
'object-fit',
'object-position', 'object-position',
'overflow', 'overflow',
'vertical-align', 'vertical-align',

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.2-alpha-54674'; $wp_version = '6.2-alpha-54675';
/** /**
* 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.