Avoid a notice by checking that SCRIPT_DEBUG is defined before evaluating it in `register_admin_color_schemes()`.

See #26316.


git-svn-id: https://develop.svn.wordpress.org/trunk@26786 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2013-12-07 19:22:57 +00:00
parent 76d75b7d22
commit 4056d33bca
1 changed files with 1 additions and 1 deletions

View File

@ -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" ),