Revert [27228], as it doesn't work with SCRIPT_DEBUG off.

see #27175.

git-svn-id: https://develop.svn.wordpress.org/trunk@27232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-02-22 01:58:45 +00:00
parent ed6ec6de61
commit 03f35c2bce

View File

@ -578,11 +578,6 @@ function wp_default_styles( &$styles ) {
// Register a stylesheet for the selected admin color scheme. // Register a stylesheet for the selected admin color scheme.
$colors_url = false; $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'] ) ) { if ( ! empty( $GLOBALS['_wp_admin_css_colors'] ) ) {
$color = get_user_option( 'admin_color' ); $color = get_user_option( 'admin_color' );
if ( ! $color || ! isset( $GLOBALS['_wp_admin_css_colors'][ $color ] ) ) { if ( ! $color || ! isset( $GLOBALS['_wp_admin_css_colors'][ $color ] ) ) {