Make WordPress Core


Ignore:
Timestamp:
10/24/2022 03:34:42 PM (16 months ago)
Author:
davidbaumwald
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r54667 r54675  
    11131113                'expected' => 'object-position: right top',
    11141114            ),
     1115            // `object-fit` introduced in 6.1.
     1116            array(
     1117                'css'      => 'object-fit: cover',
     1118                'expected' => 'object-fit: cover',
     1119            ),
    11151120            // Expressions are not allowed.
    11161121            array(
Note: See TracChangeset for help on using the changeset viewer.