Make WordPress Core

Changeset 56617


Ignore:
Timestamp:
09/19/2023 12:28:25 PM (14 months ago)
Author:
SergeyBiryukov
Message:

KSES: Add writing-mode to the list of safe CSS properties.

Original PR from Gutenberg repository:

Reference: MDN Web Docs: writing-mode.

Follow-up to [56605].

Props wildworks, mukesh27, poena, andrewserong.
Fixes #59387.

Location:
trunk
Files:
2 edited

Legend:

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

    r56608 r56617  
    23022302 * @since 6.3.0 Extended support for `filter` to accept a URL and added support for repeat().
    23032303 *              Added support for `box-shadow`.
     2304 * @since 6.4.0 Added support for `writing-mode`.
    23042305 *
    23052306 * @param string $css        A string of CSS rules.
     
    24622463            'overflow',
    24632464            'vertical-align',
     2465            'writing-mode',
    24642466
    24652467            'position',
  • trunk/tests/phpunit/tests/kses.php

    r55944 r56617  
    13421342                'expected' => '',
    13431343            ),
     1344            // `writing-mode` introduced in 6.4.
     1345            array(
     1346                'css'      => 'writing-mode: vertical-rl',
     1347                'expected' => 'writing-mode: vertical-rl',
     1348            ),
    13441349        );
    13451350    }
Note: See TracChangeset for help on using the changeset viewer.