[wp-trac] [WordPress Trac] #32118: SCRIPT_DEBUG check in print_emoji_detection_script() generating PHP Notices

WordPress Trac noreply at wordpress.org
Sun Apr 26 19:57:24 UTC 2015


#32118: SCRIPT_DEBUG check in  print_emoji_detection_script() generating PHP
Notices
-------------------------------------------------+-------------------------
 Reporter:  aut0poietic                          |       Owner:  craig-
     Type:  defect (bug)                         |  ralston
 Priority:  normal                               |      Status:  reopened
Component:  Formatting                           |   Milestone:  4.2.1
 Severity:  normal                               |     Version:  4.2
 Keywords:  good-first-bug has-patch fixed-      |  Resolution:
  major                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Now this breaks when running from /src :)

 Testing with a theme that doesn't enqueue scripts or styles, and with
 SCRIPT_DEBUG not defined in wp-config.php, there is an "Uncaught
 SyntaxError: Unexpected string" because the "build" version of the script
 is outputted: https://core.trac.wordpress.org/browser/tags/4.2/src/wp-
 includes/formatting.php#L4175.

 Perhaps we can keep the above fix for 4.2 but add something better in
 trunk.

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


More information about the wp-trac mailing list