@wordpress/style-engine 1.21.0 → 1.22.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 +5 -0
- package/README.md +1 -1
- package/class-wp-style-engine-processor.php +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ _Returns_
|
|
|
108
108
|
|
|
109
109
|
Useful for when you wish to compile a bespoke set of CSS rules from a series of selector + declaration items.
|
|
110
110
|
|
|
111
|
-
The Style Engine will return a sanitized
|
|
111
|
+
The Style Engine will return a sanitized stylesheet. By passing a `context` identifier in the options, the Style Engine will store the styles for later retrieval, for example, should you wish to batch enqueue a set of CSS rules.
|
|
112
112
|
|
|
113
113
|
You can call `wp_style_engine_get_stylesheet_from_css_rules()` multiple times, and, so long as your styles use the same `context` identifier, they will be stored together.
|
|
114
114
|
|
|
@@ -81,6 +81,8 @@ class WP_Style_Engine_Processor {
|
|
|
81
81
|
/**
|
|
82
82
|
* Get the CSS rules as a string.
|
|
83
83
|
*
|
|
84
|
+
* Since 6.4.0 Optimization is no longer the default.
|
|
85
|
+
*
|
|
84
86
|
* @param array $options {
|
|
85
87
|
* Optional. An array of options. Default empty array.
|
|
86
88
|
*
|
|
@@ -92,7 +94,7 @@ class WP_Style_Engine_Processor {
|
|
|
92
94
|
*/
|
|
93
95
|
public function get_css( $options = array() ) {
|
|
94
96
|
$defaults = array(
|
|
95
|
-
'optimize' =>
|
|
97
|
+
'optimize' => false,
|
|
96
98
|
'prettify' => SCRIPT_DEBUG,
|
|
97
99
|
);
|
|
98
100
|
$options = wp_parse_args( $options, $defaults );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/style-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.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": "
|
|
38
|
+
"gitHead": "b898cf1dc8e70841d1647ea0994ac6278acc18a7"
|
|
39
39
|
}
|