[wp-trac] [WordPress Trac] #52879: The SCRIPT_DEBUG constant is ignored when concatenating scripts
WordPress Trac
noreply at wordpress.org
Mon Mar 22 03:39:16 UTC 2021
#52879: The SCRIPT_DEBUG constant is ignored when concatenating scripts
---------------------------+--------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: Script Loader | Version: 2.8
Severity: minor | Keywords:
Focuses: |
---------------------------+--------------------
Happens because `SCRIPT_DEBUG` is usually defined in `wp-config.php`
however that file is not used in `load-scripts.php` and `load-styles.php`.
This results in non-minified files being concatenated and outputted when
SCRIPT_DEBUG is false and WP runs from /src.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list