WordPress.org

Make WordPress Core

Changeset 50634


Ignore:
Timestamp:
04/02/2021 12:39:57 PM (3 months ago)
Author:
SergeyBiryukov
Message:

KSES: Add object-position to the list of safe CSS properties.

This resolves an issue with the Cover block, where the object-position property is removed from the content when a non-admin user saves the post, leading to block recovery loop.

Props Mamaduka, aristath.
Fixes #52961.

File:
1 edited

Legend:

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

    r49927 r50634  
    21722172     *              Extend `background-*` support of individual properties.
    21732173     * @since 5.3.1 Added support for gradient backgrounds.
     2174     * @since 5.7.1 Added support for `object-position`.
    21742175     *
    21752176     * @param string[] $attr Array of allowed CSS attributes.
     
    22852286            'float',
    22862287            'list-style-type',
     2288            'object-position',
    22872289            'overflow',
    22882290            'vertical-align',
Note: See TracChangeset for help on using the changeset viewer.