Make WordPress Core

Changeset 50649 for branches/5.7


Ignore:
Timestamp:
04/02/2021 07:29:56 PM (3 years 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.
Merges [50634] to the 5.7 branch.
Fixes #52961.

Location:
branches/5.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

  • branches/5.7/src/wp-includes/kses.php

    r49927 r50649  
    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.