WordPress.org

Make WordPress Core

#22948 closed defect (bug) (invalid)

SCRIPT_DEBUG no longer disables compression.

Reported by: wycks Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: General Keywords:
Focuses: Cc:

Description

define( 'SCRIPT_DEBUG', true );

No longer disables compression, minify'd versions are still loaded for CS and JS.

Change History (5)

comment:1 helen16 months ago

  • Keywords reporter-feedback added

Not happening for me. Example?

comment:2 nacin16 months ago

There are two different things that SCRIPT_DEBUG does: turns off compression (i.e. gzip) and turns off concatenation (i.e. minification). SCRIPT_DEBUG still works for me in both cases, are you defining it too late in wp-config.php? (As in, after wp-settings.php?)

comment:3 wycks16 months ago

  • Keywords close added

Correct it was defines after wp-settings.php, defining it before works fine (it was a copy past from 3.4 config which seemed to work fine, weird.

comment:4 dd3216 months ago

As odd as it may sound, wycks isn't entirely crazy, but it isn't a change in behaviour.

In both 3.4 and 3.5, Defining it after wp-settings include disables concatenation, but still results in the minified files being loaded.

If you define it before, it both disabled concatenation and loads non-minified versions

comment:5 SergeyBiryukov16 months ago

  • Keywords 2nd-opinion needs-patch reporter-feedback close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

It says "That's all, stop editing!" before loading wp-settings.php.

Note: See TracTickets for help on using tickets.