@wordpress/style-engine 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.16.0 (2023-05-10)
6
+
5
7
  ## 1.15.0 (2023-04-26)
6
8
 
7
9
  ## 1.14.0 (2023-04-12)
@@ -17,22 +17,6 @@ if ( class_exists( 'WP_Style_Engine_CSS_Declarations' ) ) {
17
17
  * @access private
18
18
  */
19
19
  class WP_Style_Engine_CSS_Declarations {
20
- /**
21
- * An array of valid CSS custom properties.
22
- * CSS custom properties are permitted by safecss_filter_attr()
23
- * since WordPress 6.1. See: https://core.trac.wordpress.org/ticket/56353.
24
- *
25
- * This whitelist exists so that the Gutenberg plugin maintains
26
- * backwards compatibility with versions of WordPress < 6.1.
27
- *
28
- * It does not need to be backported to future versions of WordPress.
29
- *
30
- * @var array
31
- */
32
- protected static $valid_custom_declarations = array(
33
- '--wp--style--unstable-gallery-gap' => 'gap',
34
- );
35
-
36
20
  /**
37
21
  * An array of CSS declarations (property => value pairs).
38
22
  *
@@ -141,22 +125,6 @@ class WP_Style_Engine_CSS_Declarations {
141
125
  protected static function filter_declaration( $property, $value, $spacer = '' ) {
142
126
  $filtered_value = wp_strip_all_tags( $value, true );
143
127
 
144
- /**
145
- * Allows a specific list of CSS custom properties starting with `--wp--`.
146
- *
147
- * CSS custom properties are permitted by safecss_filter_attr()
148
- * since WordPress 6.1. See: https://core.trac.wordpress.org/ticket/56353.
149
- *
150
- * This condition exists so that the Gutenberg plugin maintains
151
- * backwards compatibility with versions of WordPress < 6.1.
152
- *
153
- * It does not need to be backported to future versions of WordPress.
154
- */
155
- if ( '' !== $filtered_value && isset( static::$valid_custom_declarations[ $property ] ) ) {
156
- return safecss_filter_attr( static::$valid_custom_declarations[ $property ] . ":{$spacer}{$value}" ) ?
157
- "{$property}:{$spacer}{$value}" : '';
158
- }
159
-
160
128
  if ( '' !== $filtered_value ) {
161
129
  return safecss_filter_attr( "{$property}:{$spacer}{$filtered_value}" );
162
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/style-engine",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "A suite of parsers and compilers for WordPress styles.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "6df0c62d43b8901414ccd22ffbe56eaa99d012a6"
38
+ "gitHead": "e936127e1e13881f1a940b7bd1593a9e500147f3"
39
39
  }