From 081932443f6f7e55ae80af959b11fd9b574978b2 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 7 Dec 2013 19:23:11 +0000 Subject: [PATCH] Avoid a notice by checking that SCRIPT_DEBUG is defined before evaluating it in `register_admin_color_schemes()`. See #26316. Built from https://develop.svn.wordpress.org/trunk@26786 git-svn-id: http://core.svn.wordpress.org/trunk@26673 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 3a60ffb381..7a83579c97 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2116,7 +2116,7 @@ function wp_admin_css_color( $key, $name, $url, $colors = array(), $icons = arra */ function register_admin_color_schemes() { $suffix = is_rtl() ? '-rtl' : ''; - $suffix .= SCRIPT_DEBUG ? '' : '.min'; + $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ), admin_url( "css/colors$suffix.css" ),