Make WordPress Core

Opened 19 months ago

Last modified 19 months ago

#62265 new defect (bug)

wp-admin honors style-sheet <=> 'SCRIPT_DEBUG' is true.

Reported by: cjm51213's profile cjm51213 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.6.2
Component: Script Loader Keywords:
Focuses: Cc:

Description

Newly installed 6.6.2. Front-end requests worked fine. /wp-admin requests, by contrast, were css-free. For example, /wp-admin/wp-site-editor.php reported that javascript was not enabled and Firefox clearly showed that it was.

"define( 'SCRIPT_DEBUG', false );" problem.
"define( 'SCRIPT_DEBUG', true );" No problem.

I'm pretty sure that there is a defective dependancy and 'SCRIPT_DEBUG' compensates for it. My unfounded suspicion is that jQuery was not being loaded. No jQuery could look exactly like no javascript.

Change History (1)

#1 @cjm51213
19 months ago

I have subsequently learned that independently of SCRIPT_DEBUG setting, define('CONCATENATE_SCRIPTS', false ); will also prevent this problem.

To summarize: "C" is CONCATENATE_SCRIPTS; "S" is SCRIPT_DEBUG

C | S |
T T : Works
T F : Fails
F T : Works
F F : Works

If CONCATENATE_SCRIPTS is true, then nothing else has any effect. If CONCATENATE_SCRIPTS is false, then SCRIPT_DEBUG is controlling.

Version 0, edited 19 months ago by cjm51213 (next)
Note: See TracTickets for help on using tickets.