KSES: Allow more layout-related CSS properties.
Adds support for the following CSS properties considered safe for inline CSS: * `flex-wrap` * `gap` * `column-gap` * `row-gap` Extends support for `margin` and `padding` to include logical properties: * `margin-block-start` * `margin-block-end` * `margin-inline-start` * `margin-inline-end` * `padding-block-start` * `padding-block-end` * `padding-inline-start` * `padding-inline-end` Follow-up to [46235]. Props andrewserong, peterwilsoncc, ramonopoly, bernhard-reiter. Fixes #56122. Built from https://develop.svn.wordpress.org/trunk@54102 git-svn-id: http://core.svn.wordpress.org/trunk@53661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6c2690313
commit
ffaf3da76f
|
@ -2224,12 +2224,14 @@ function kses_init() {
|
|||
* @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.
|
||||
* Extended `background-*` support for 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.
|
||||
* @since 6.1.0 Added support for `min()`, `max()`, `minmax()`, `clamp()`,
|
||||
* and nested `var()` values.
|
||||
* Added support for `gap`, `column-gap`, `row-gap`, and `flex-wrap`.
|
||||
* Extended `margin-*` and `padding-*` support for logical properties.
|
||||
*
|
||||
* @param string $css A string of CSS rules.
|
||||
* @param string $deprecated Not used.
|
||||
|
@ -2335,12 +2337,20 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||
'margin-bottom',
|
||||
'margin-left',
|
||||
'margin-top',
|
||||
'margin-block-start',
|
||||
'margin-block-end',
|
||||
'margin-inline-start',
|
||||
'margin-inline-end',
|
||||
|
||||
'padding',
|
||||
'padding-right',
|
||||
'padding-bottom',
|
||||
'padding-left',
|
||||
'padding-top',
|
||||
'padding-block-start',
|
||||
'padding-block-end',
|
||||
'padding-inline-start',
|
||||
'padding-inline-end',
|
||||
|
||||
'flex',
|
||||
'flex-basis',
|
||||
|
@ -2348,6 +2358,11 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
|
||||
'gap',
|
||||
'column-gap',
|
||||
'row-gap',
|
||||
|
||||
'grid-template-columns',
|
||||
'grid-auto-columns',
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-54101';
|
||||
$wp_version = '6.1-alpha-54102';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue