From 125d3fd72e5fff3eff8802ae7fde15886d0b7fd9 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 13 Feb 2023 08:47:21 +0000 Subject: [PATCH] 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 --- wp-includes/kses.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 5766beb92f..8722176718 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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. '--*', diff --git a/wp-includes/version.php b/wp-includes/version.php index d5c09ffec6..be28350a99 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.