mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54675 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2423,6 +2423,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||
'direction',
|
||||
'float',
|
||||
'list-style-type',
|
||||
'object-fit',
|
||||
'object-position',
|
||||
'overflow',
|
||||
'vertical-align',
|
||||
|
||||
@@ -1112,6 +1112,11 @@ EOF;
|
||||
'css' => 'object-position: right top',
|
||||
'expected' => 'object-position: right top',
|
||||
),
|
||||
// `object-fit` introduced in 6.1.
|
||||
array(
|
||||
'css' => 'object-fit: cover',
|
||||
'expected' => 'object-fit: cover',
|
||||
),
|
||||
// Expressions are not allowed.
|
||||
array(
|
||||
'css' => 'height: expression( body.scrollTop + 50 + "px" )',
|
||||
|
||||
Reference in New Issue
Block a user