From a5213e123f9cefb146e56439f525ad6fd45a7367 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Mon, 24 Oct 2022 15:36:13 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index b1b7c7319a..df07c6c10b 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -2423,6 +2423,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'direction', 'float', 'list-style-type', + 'object-fit', 'object-position', 'overflow', 'vertical-align', diff --git a/wp-includes/version.php b/wp-includes/version.php index 46b33448bf..4dfaef4232 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.