diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index ce21bf5bd703a..27da1679e8779 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -2301,6 +2301,7 @@ function kses_init() { * and `z-index` CSS properties. * @since 6.3.0 Extended support for `filter` to accept a URL and added support for repeat(). * Added support for `box-shadow`. + * @since 6.4.0 Added support for `writing-mode`. * * @param string $css A string of CSS rules. * @param string $deprecated Not used. @@ -2461,6 +2462,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'object-position', 'overflow', 'vertical-align', + 'writing-mode', 'position', 'top', diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php index a19df38626a7a..45f2862d14b78 100644 --- a/tests/phpunit/tests/kses.php +++ b/tests/phpunit/tests/kses.php @@ -1341,6 +1341,11 @@ public function data_safecss_filter_attr() { 'css' => 'grid-template-columns: repeat(4, unsupported(0, 1fr)', 'expected' => '', ), + // `writing-mode` introduced in 6.4. + array( + 'css' => 'writing-mode: vertical-rl', + 'expected' => 'writing-mode: vertical-rl', + ), ); }