Make WordPress Core


Ignore:
Timestamp:
11/08/2022 04:33:04 AM (2 years ago)
Author:
peterwilsoncc
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, davidbaumwald.
Merges [54675] to the 6.0 branch.
Fixes #56855.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/tests/phpunit/tests/kses.php

    r53331 r54763  
    11061106                'expected' => 'background: conic-gradient(at 0% 30%, red 10%, yellow 30%, #1e90ff 50%)',
    11071107            ),
     1108            // `object-fit` introduced in 6.1.
     1109            array(
     1110                'css'      => 'object-fit: cover',
     1111                'expected' => 'object-fit: cover',
     1112            ),
    11081113            // Expressions are not allowed.
    11091114            array(
Note: See TracChangeset for help on using the changeset viewer.