From 1287cb61813006fcc162dab454384e620a285fed Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 12 Jul 2024 03:36:15 +0000 Subject: [PATCH] KSES: Add `opacity` to the list of safe CSS properties. Original PR from Gutenberg repository: * [https://github.com/WordPress/gutenberg/pull/59891 #59891 Update overlay step function in cover block] Reference: [https://developer.mozilla.org/en-US/docs/Web/CSS/opacity MDN Web Docs: opacity]. Props sunil25393, wildworks, poena, Mamaduka, presstoke. Fixes #61536. Built from https://develop.svn.wordpress.org/trunk@58709 git-svn-id: http://core.svn.wordpress.org/trunk@58111 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 0ef5803ebc..cd30d845f8 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -2526,6 +2526,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) { 'list-style-type', 'object-fit', 'object-position', + 'opacity', 'overflow', 'vertical-align', 'writing-mode', diff --git a/wp-includes/version.php b/wp-includes/version.php index 92f6ddcde5..c555793a5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58708'; +$wp_version = '6.7-alpha-58709'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.