Make WordPress Core

Changeset 54675


Ignore:
Timestamp:
10/24/2022 03:34:42 PM (2 years 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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r54672 r54675  
    24242424            'float',
    24252425            'list-style-type',
     2426            'object-fit',
    24262427            'object-position',
    24272428            'overflow',
  • 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.