Avoid a notice when SCRIPT_DEBUG is not defined. props MikeHansenMe. see #25824, #25858.

git-svn-id: https://develop.svn.wordpress.org/trunk@26146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2013-11-13 23:58:32 +00:00
parent b0bd982f4c
commit 37b14a653a

View File

@ -2107,7 +2107,7 @@ function wp_admin_css_color( $key, $name, $url, $colors = array(), $icons = arra
* @since 3.0.0
*/
function register_admin_color_schemes() {
$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-fresh$suffix.css" ),