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
This commit is contained in:
parent
2c91899724
commit
15e552e105
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue