Docs: Correct default value for the `$optimize` option in Style Engine.
The default value is set to `true` in `WP_Style_Engine_Processor::get_css()`, but was previously documented as `false` in various DocBlocks. Follow-up to [54156], [55719], [55733], [55819]. See #57840. Built from https://develop.svn.wordpress.org/trunk@55820 git-svn-id: http://core.svn.wordpress.org/trunk@55332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c14343ba25
commit
95bcde947f
|
@ -3020,7 +3020,7 @@ function wp_enqueue_block_support_styles( $style, $priority = 10 ) {
|
||||||
* Default empty array.
|
* Default empty array.
|
||||||
*
|
*
|
||||||
* @type bool $optimize Whether to optimize the CSS output, e.g., combine rules.
|
* @type bool $optimize Whether to optimize the CSS output, e.g., combine rules.
|
||||||
* Default false.
|
* Default true.
|
||||||
* @type bool $prettify Whether to add new lines and indents to output.
|
* @type bool $prettify Whether to add new lines and indents to output.
|
||||||
* Default to whether the `SCRIPT_DEBUG` constant is defined.
|
* Default to whether the `SCRIPT_DEBUG` constant is defined.
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -130,7 +130,7 @@ function wp_style_engine_get_styles( $block_styles, $options = array() ) {
|
||||||
* e.g. 'block-supports' or 'global-styles'. Default 'block-supports'.
|
* e.g. 'block-supports' or 'global-styles'. Default 'block-supports'.
|
||||||
* When set, the style engine will attempt to store the CSS rules.
|
* When set, the style engine will attempt to store the CSS rules.
|
||||||
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
||||||
* Default false.
|
* Default true.
|
||||||
* @type bool $prettify Whether to add new lines and indents to output.
|
* @type bool $prettify Whether to add new lines and indents to output.
|
||||||
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
||||||
* }
|
* }
|
||||||
|
@ -178,7 +178,7 @@ function wp_style_engine_get_stylesheet_from_css_rules( $css_rules, $options = a
|
||||||
* Optional. An array of options. Default empty array.
|
* Optional. An array of options. Default empty array.
|
||||||
*
|
*
|
||||||
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
||||||
* Default false.
|
* Default true.
|
||||||
* @type bool $prettify Whether to add new lines and indents to output.
|
* @type bool $prettify Whether to add new lines and indents to output.
|
||||||
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -90,7 +90,7 @@ class WP_Style_Engine_Processor {
|
||||||
* Optional. An array of options. Default empty array.
|
* Optional. An array of options. Default empty array.
|
||||||
*
|
*
|
||||||
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
||||||
* Default false.
|
* Default true.
|
||||||
* @type bool $prettify Whether to add new lines and indents to output.
|
* @type bool $prettify Whether to add new lines and indents to output.
|
||||||
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -606,7 +606,7 @@ final class WP_Style_Engine {
|
||||||
* e.g. 'block-supports' or 'global-styles'. Default 'block-supports'.
|
* e.g. 'block-supports' or 'global-styles'. Default 'block-supports'.
|
||||||
* When set, the style engine will attempt to store the CSS rules.
|
* When set, the style engine will attempt to store the CSS rules.
|
||||||
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
* @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
|
||||||
* Default false.
|
* Default true.
|
||||||
* @type bool $prettify Whether to add new lines and indents to output.
|
* @type bool $prettify Whether to add new lines and indents to output.
|
||||||
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
* Defaults to whether the `SCRIPT_DEBUG` constant is defined.
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55819';
|
$wp_version = '6.3-alpha-55820';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue