Ticket #27175: 27175.4.diff
File 27175.4.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-includes/default-filters.php
280 280 add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' ); 281 281 282 282 // Admin Color Schemes 283 add_action( 'admin_init', 'register_admin_color_schemes', 1);284 283 add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 285 284 286 285 // If the upgrade hasn't run yet, assume link manager is used. -
src/wp-includes/general-template.php
2099 2099 * @since 3.0.0 2100 2100 */ 2101 2101 function register_admin_color_schemes() { 2102 $suffix = is_rtl() ? '-rtl' : '';2102 $suffix = ( function_exists( 'is_rtl' ) && is_rtl() ) ? '-rtl' : ''; 2103 2103 $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 2104 2104 2105 2105 wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ), -
src/wp-includes/script-loader.php
578 578 579 579 // Register a stylesheet for the selected admin color scheme. 580 580 $colors_url = false; 581 if ( is_admin() && function_exists( 'register_admin_color_schemes' ) ) { 582 register_admin_color_schemes(); 583 } 581 584 if ( ! empty( $GLOBALS['_wp_admin_css_colors'] ) ) { 582 585 $color = get_user_option( 'admin_color' ); 583 586 if ( ! $color || ! isset( $GLOBALS['_wp_admin_css_colors'][ $color ] ) ) {