[wp-trac] [WordPress Trac] #32461: Use of undefined constant in /wp-includes/formatting.php

WordPress Trac noreply at wordpress.org
Fri May 22 08:13:28 UTC 2015


#32461: Use of undefined constant in /wp-includes/formatting.php
--------------------------+-----------------------------
 Reporter:  stratboy      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi, I get this notice:


 {{{
 Notice: Use of undefined constant SCRIPT_DEBUG - assumed 'SCRIPT_DEBUG' in
 [path]/wp-includes/formatting.php on line 4144
 }}}

 Can fix it just by replacing

 {{{
 if ( SCRIPT_DEBUG ) {
 }}}

 with


 {{{
 if (defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32461>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list