Make WordPress Core

Ticket #59387: patch-1.diff

File patch-1.diff, 1.2 KB (added by wildworks, 10 months ago)

Add @since annotation for the function and fix typo in comment text of phpunit test

  • src/wp-includes/kses.php

    diff --git src/wp-includes/kses.php src/wp-includes/kses.php
    index ce21bf5bd7..7c497af15f 100644
    function kses_init() { 
    23012301 *              and `z-index` CSS properties.
    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.
    23062307 * @param string $deprecated Not used.
    function safecss_filter_attr( $css, $deprecated = '' ) { 
    24702471                        'z-index',
    24712472                        'box-shadow',
    24722473                        'aspect-ratio',
     2474                        'writing-mode',
    24732475
    24742476                        // Custom CSS properties.
    24752477                        '--*',
  • tests/phpunit/tests/kses.php

    diff --git tests/phpunit/tests/kses.php tests/phpunit/tests/kses.php
    index a19df38626..698f1592f3 100644
    EOF; 
    13411341                                'css'      => 'grid-template-columns: repeat(4, unsupported(0, 1fr)',
    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        }
    13461351