Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#32333 closed defect (bug) (fixed)

Define SCRIPT_DEBUG early, similarly to WP_DEBUG

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 4.3 Priority: normal
Severity: normal Version:
Component: Bootstrap/Load Keywords: has-patch commit
Focuses: Cc:

Description

Currently SCRIPT_DEBUG in defined in script-loader.php. That is about half-way through loading of WordPress.

This will not impact any plugins as script-loader.php is already included by the time plugins are loaded. It will make SCRIPT_DEBUG always available and prevent errors similar to #32118.

Attachments (1)

32333.patch (1.4 KB) - added by azaozz 9 years ago.

Download all attachments as: .zip

Change History (5)

#1 @azaozz
9 years ago

We will still need the check at the top of script-loader.php as that file is included directly when concatenating scripts and stylesheets.

@azaozz
9 years ago

#2 @azaozz
9 years ago

  • Keywords has-patch 2nd-opinion added

#3 @wonderboymusic
9 years ago

  • Keywords commit added; 2nd-opinion removed

#4 @azaozz
9 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 32935:

Define SCRIPT_DEBUG early on every load, similarly to WP_DEBUG. Remove defined( 'SCRIPT_DEBUG' ) checks.
Fixes #32333.

Note: See TracTickets for help on using tickets.