diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php
index 2b96e84a47..d73c5e8ff1 100644
a
|
b
|
function safecss_filter_attr( $css, $deprecated = '' ) { |
2063 | 2063 | * @since 5.0.0 Added support for `background-image`. |
2064 | 2064 | * @since 5.1.0 Added support for `text-transform`. |
2065 | 2065 | * @since 5.2.0 Added support for `background-position` and `grid-template-columns` |
| 2066 | * @since 5.3.0 Added support for `flex`, `flex-grow`, `flex-shrink`, and `flex-basis`. |
2066 | 2067 | * |
2067 | 2068 | * @param string[] $attr Array of allowed CSS attributes. |
2068 | 2069 | */ |
… |
… |
function safecss_filter_attr( $css, $deprecated = '' ) { |
2133 | 2134 | 'padding-left', |
2134 | 2135 | 'padding-top', |
2135 | 2136 | |
| 2137 | 'flex', |
| 2138 | 'flex-grow', |
| 2139 | 'flex-shrink', |
| 2140 | 'flex-basis', |
| 2141 | |
2136 | 2142 | 'clear', |
2137 | 2143 | 'cursor', |
2138 | 2144 | 'direction', |
diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php
index b359452b88..98c2987c2e 100644
a
|
b
|
EOF; |
830 | 830 | 'css' => 'background: green url("foo.jpg") no-repeat fixed center', |
831 | 831 | 'expected' => 'background: green url("foo.jpg") no-repeat fixed center', |
832 | 832 | ), |
| 833 | // `flex` and related attributes introduced in 5.3. |
| 834 | array( |
| 835 | 'css' => 'flex: 0 1 auto;flex-basis: 75%;flex-shrink: 0;flex-grow: 1', |
| 836 | 'expected' => 'flex: 0 1 auto;flex-basis: 75%;flex-shrink: 0;flex-grow: 1', |
| 837 | ), |
833 | 838 | ); |
834 | 839 | } |
835 | 840 | |