From 15e552e1055a55176500f8440200f21b4d16fb4d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Sep 2021 01:37:57 +0000 Subject: [PATCH] Docs: Move `@since` notes from the `safe_style_css` filter to the `safecss_filter_attr()` function. The filter allows to modify the list of allowed CSS attributes, however support for specific CSS attributes is added to the function rather than the filter. Follow-up to [37931], [38121], [42880], [44136], [44531], [45242], [45363], [46235], [46793], [50634], [50923]. Props tmatsuur, muhammadfaizanhaidar, sabernhardt. Fixes #53731. Built from https://develop.svn.wordpress.org/trunk@51729 git-svn-id: http://core.svn.wordpress.org/trunk@51335 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 22 +++++++++++----------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index cf00df3cbd..0b24a1ba0c 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -2152,6 +2152,16 @@ function kses_init() { * Filters an inline style attribute and removes disallowed rules. * * @since 2.8.1 + * @since 4.4.0 Added support for `min-height`, `max-height`, `min-width`, and `max-width`. + * @since 4.6.0 Added support for `list-style-type`. + * @since 5.0.0 Added support for `background-image`. + * @since 5.1.0 Added support for `text-transform`. + * @since 5.2.0 Added support for `background-position` and `grid-template-columns`. + * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties. + * Extend `background-*` support of individual properties. + * @since 5.3.1 Added support for gradient backgrounds. + * @since 5.7.1 Added support for `object-position`. + * @since 5.8.0 Added support for `calc()` and `var()` values. * * @param string $css A string of CSS rules. * @param string $deprecated Not used. @@ -2170,19 +2180,9 @@ function safecss_filter_attr( $css, $deprecated = '' ) { $css_array = explode( ';', trim( $css ) ); /** - * Filters list of allowed CSS attributes. + * Filters the list of allowed CSS attributes. * * @since 2.8.1 - * @since 4.4.0 Added support for `min-height`, `max-height`, `min-width`, and `max-width`. - * @since 4.6.0 Added support for `list-style-type`. - * @since 5.0.0 Added support for `background-image`. - * @since 5.1.0 Added support for `text-transform`. - * @since 5.2.0 Added support for `background-position` and `grid-template-columns`. - * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties. - * Extend `background-*` support of individual properties. - * @since 5.3.1 Added support for gradient backgrounds. - * @since 5.7.1 Added support for `object-position`. - * @since 5.8.0 Added support for `calc()` and `var()` values. * * @param string[] $attr Array of allowed CSS attributes. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 7e5ac18a90..9b4fb10ed8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51728'; +$wp_version = '5.9-alpha-51729'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.