I’m getting this error at the top of my wordpress site:

Notice: Use of undefined constant SCRIPT_DEBUG – assumed ‘SCRIPT_DEBUG’ in /[wordpress path]/wp-includes/formatting.php on line 4144

No idea where it came from, any ideas what started causing this?

Using version 4.2.1

2 s
2

This is a known bug

As far as I’m concerned, you can easily fix it by replacing

if ( SCRIPT_DEBUG ) {

with

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

That should suppress the error for now.

When WordPress is updated again, this error may be overwritten, but I believe it will be fixed in the next update.

UPDATE

Fixed at build 32482.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *