Formatting: Add `aspect-ratio` as valid CSS property in KSES.

This changeset adds support for the `aspect-ratio` CSS property, which is considered safe for inline CSS.

Props ajlende, peterwilsoncc.
Fixes #57664.

Built from https://develop.svn.wordpress.org/trunk@55309


git-svn-id: http://core.svn.wordpress.org/trunk@54842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-02-13 08:47:21 +00:00
parent bd92d87b74
commit 125d3fd72e
2 changed files with 4 additions and 2 deletions

View File

@ -2277,7 +2277,8 @@ function kses_init() {
* nested `var()` values, and assigning values to CSS variables.
* Added support for `object-fit`, `gap`, `column-gap`, `row-gap`, and `flex-wrap`.
* Extended `margin-*` and `padding-*` support for logical properties.
* @since 6.2.0 Added support for `position`, `top`, `right`, `bottom`, `left` and `z-index` position CSS properties.
* @since 6.2.0 Added support for `aspect-ratio`, `position`, `top`, `right`, `bottom`, `left`,
* and `z-index` CSS properties.
*
* @param string $css A string of CSS rules.
* @param string $deprecated Not used.
@ -2445,6 +2446,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
'bottom',
'left',
'z-index',
'aspect-ratio',
// Custom CSS properties.
'--*',

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-beta1-55308';
$wp_version = '6.2-beta1-55309';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.