[wp-trac] [WordPress Trac] #52879: The SCRIPT_DEBUG constant is ignored when concatenating scripts

WordPress Trac noreply at wordpress.org
Mon Mar 22 03:49:02 UTC 2021


#52879: The SCRIPT_DEBUG constant is ignored when concatenating scripts
---------------------------+---------------------
 Reporter:  azaozz         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Script Loader  |     Version:  2.8
 Severity:  minor          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+---------------------

Comment (by azaozz):

 In 52879.patch: The long way of doing this. Pass SCRIPT_DEBUG to load-
 scripts.php and load-styles.php so script loader would properly choose the
 minified files. A shorter way may be to just assume SCRIPT_DEBUG is set to
 false when running from /src and concatenation (load-scripts.php or load-
 styles.php) is used.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52879#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list