Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#22948 closed defect (bug) (invalid)

SCRIPT_DEBUG no longer disables compression.

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


define( 'SCRIPT_DEBUG', true );

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

Change History (5)

#1 @helen
11 years ago

  • Keywords reporter-feedback added

Not happening for me. Example?

#2 @nacin
11 years 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?)

#3 @wycks
11 years 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.

#4 @dd32
11 years 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

#5 @SergeyBiryukov
11 years 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.