mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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
This commit is contained in:
parent
95a02fbe43
commit
081932443f
@ -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" ),
|
||||
|
Loading…
Reference in New Issue
Block a user