diff --git src/wp-includes/kses.php src/wp-includes/kses.php
index ce21bf5bd7..7c497af15f 100644
|
|
function kses_init() { |
2301 | 2301 | * and `z-index` CSS properties. |
2302 | 2302 | * @since 6.3.0 Extended support for `filter` to accept a URL and added support for repeat(). |
2303 | 2303 | * Added support for `box-shadow`. |
| 2304 | * @since 6.4.0 Added support for `writing-mode`. |
2304 | 2305 | * |
2305 | 2306 | * @param string $css A string of CSS rules. |
2306 | 2307 | * @param string $deprecated Not used. |
… |
… |
function safecss_filter_attr( $css, $deprecated = '' ) { |
2470 | 2471 | 'z-index', |
2471 | 2472 | 'box-shadow', |
2472 | 2473 | 'aspect-ratio', |
| 2474 | 'writing-mode', |
2473 | 2475 | |
2474 | 2476 | // Custom CSS properties. |
2475 | 2477 | '--*', |
diff --git tests/phpunit/tests/kses.php tests/phpunit/tests/kses.php
index a19df38626..698f1592f3 100644
|
|
EOF; |
1341 | 1341 | 'css' => 'grid-template-columns: repeat(4, unsupported(0, 1fr)', |
1342 | 1342 | 'expected' => '', |
1343 | 1343 | ), |
| 1344 | // Writing mode introduced in 6.4. |
| 1345 | array( |
| 1346 | 'css' => 'writing-mode: vertical-rl', |
| 1347 | 'expected' => 'writing-mode: vertical-rl', |
| 1348 | ), |
1344 | 1349 | ); |
1345 | 1350 | } |
1346 | 1351 | |