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

WordPress Trac noreply at wordpress.org
Fri Apr 24 22:57:04 UTC 2015


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

Comment (by azaozz):

 > What happens when this bug occurs? What happens when the notice is
 suppressed vs not suppressed? Does the JS break?

 There is an unsightly PHP notice at the top of the page when the server is
 misconfigured. The JS doesn't break but the non-minified JS is used (as
 the undefined constant is treated as string, evaluates to `true`). Happens
 when the notice is suppressed and not suppressed.

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


More information about the wp-trac mailing list