Make WordPress Core

Changeset 57228


Ignore:
Timestamp:
12/26/2023 02:22:45 PM (15 months ago)
Author:
SergeyBiryukov
Message:

KSES: Add background-repeat to the list of safe CSS properties.

Follow-up to [45242], [46235].

Props andrewserong, ramonopoly, mukesh27.
Fixes #60132.

Location:
trunk
Files:
2 edited

Legend:

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

    r57061 r57228  
    23042304 *              Added support for `box-shadow`.
    23052305 * @since 6.4.0 Added support for `writing-mode`.
     2306 * @since 6.5.0 Added support for `background-repeat`.
    23062307 *
    23072308 * @param string $css        A string of CSS rules.
     
    23352336            'background-image',
    23362337            'background-position',
     2338            'background-repeat',
    23372339            'background-size',
    23382340            'background-attachment',
  • trunk/tests/phpunit/tests/kses.php

    r57099 r57228  
    939939     * @ticket 56122
    940940     * @ticket 58551
     941     * @ticket 60132
     942     *
    941943     * @dataProvider data_safecss_filter_attr
    942944     *
     
    13461348                'css'      => 'writing-mode: vertical-rl',
    13471349                'expected' => 'writing-mode: vertical-rl',
     1350            ),
     1351            // `background-repeat` introduced in 6.5.
     1352            array(
     1353                'css'      => 'background-repeat: no-repeat',
     1354                'expected' => 'background-repeat: no-repeat',
    13481355            ),
    13491356        );
Note: See TracChangeset for help on using the changeset viewer.