Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#32461 closed defect (bug) (duplicate)

Use of undefined constant in /wp-includes/formatting.php

Reported by: stratboy Owned by:
Priority: normal Milestone:
Component: Formatting Version: 4.2.2
Severity: normal Keywords:
Cc: Focuses:

Description

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) {

Change History (1)

#1 @SergeyBiryukov
11 years ago

  • Component General → Formatting
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #32118.

Note: See TracTickets for help on using tickets.