From b1cf2bea46eb3e5974b76b812e57806d941c4384 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 22 Feb 2014 01:59:15 +0000 Subject: [PATCH] Revert [27228], as it doesn't work with SCRIPT_DEBUG off. see #27175. Built from https://develop.svn.wordpress.org/trunk@27232 git-svn-id: http://core.svn.wordpress.org/trunk@27089 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index a07442535f..98e4a870c2 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -578,11 +578,6 @@ function wp_default_styles( &$styles ) { // Register a stylesheet for the selected admin color scheme. $colors_url = false; - // It's possible this is run before admin_init, so we need to make sure color schemes are registered. - if ( is_admin() && empty( $GLOBALS['_wp_admin_css_colors'] ) && ! did_action( 'admin_init' ) && has_action( 'admin_init', 'register_admin_color_schemes' ) ) { - register_admin_color_schemes(); - remove_action( 'admin_init', 'register_admin_color_schemes', 1 ); - } if ( ! empty( $GLOBALS['_wp_admin_css_colors'] ) ) { $color = get_user_option( 'admin_color' ); if ( ! $color || ! isset( $GLOBALS['_wp_admin_css_colors'][ $color ] ) ) {