Make WordPress Core

Changeset 55820


Ignore:
Timestamp:
05/17/2023 12:04:38 PM (12 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r55819 r55820  
    30213021 *
    30223022 *     @type bool $optimize Whether to optimize the CSS output, e.g., combine rules.
    3023  *                          Default false.
     3023 *                          Default true.
    30243024 *     @type bool $prettify Whether to add new lines and indents to output.
    30253025 *                          Default to whether the `SCRIPT_DEBUG` constant is defined.
  • trunk/src/wp-includes/style-engine.php

    r55819 r55820  
    131131 *                                 When set, the style engine will attempt to store the CSS rules.
    132132 *     @type bool        $optimize Whether to optimize the CSS output, e.g. combine rules.
    133  *                                 Default false.
     133 *                                 Default true.
    134134 *     @type bool        $prettify Whether to add new lines and indents to output.
    135135 *                                 Defaults to whether the `SCRIPT_DEBUG` constant is defined.
     
    179179 *
    180180 *     @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
    181  *                          Default false.
     181 *                          Default true.
    182182 *     @type bool $prettify Whether to add new lines and indents to output.
    183183 *                          Defaults to whether the `SCRIPT_DEBUG` constant is defined.
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-processor.php

    r55819 r55820  
    9191     *
    9292     *     @type bool $optimize Whether to optimize the CSS output, e.g. combine rules.
    93      *                          Default false.
     93     *                          Default true.
    9494     *     @type bool $prettify Whether to add new lines and indents to output.
    9595     *                          Defaults to whether the `SCRIPT_DEBUG` constant is defined.
  • trunk/src/wp-includes/style-engine/class-wp-style-engine.php

    r55819 r55820  
    607607     *                                 When set, the style engine will attempt to store the CSS rules.
    608608     *     @type bool        $optimize Whether to optimize the CSS output, e.g. combine rules.
    609      *                                 Default false.
     609     *                                 Default true.
    610610     *     @type bool        $prettify Whether to add new lines and indents to output.
    611611     *                                 Defaults to whether the `SCRIPT_DEBUG` constant is defined.
Note: See TracChangeset for help on using the changeset viewer.