Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#62265 new defect (bug)

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

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

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
2 years 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.

Last edited 2 years ago by cjm51213 (previous) (diff)
Note: See TracTickets for help on using tickets.