WordPress.org

Make WordPress Core

Ticket #11625: 11625.patch

File 11625.patch, 1.7 KB (added by dd32, 8 years ago)
  • wp-admin/admin.php

     
    5454
    5555wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));
    5656
    57 wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
    58 wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
    59 
    6057wp_enqueue_script( 'common' );
    6158wp_enqueue_script( 'jquery-color' );
    6259
  • wp-includes/default-filters.php

     
    225225
    226226// Timezone
    227227add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' );
     228
     229// Admin Themes
     230add_action('admin_init', 'register_admin_colors', 1);
  • wp-includes/general-template.php

     
    19181918}
    19191919
    19201920/**
     1921 * Registers the default Admin color themes
     1922 *
     1923 * @since 3.0.0
     1924 */
     1925function register_admin_colors() {
     1926        wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
     1927        wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
     1928}
     1929
     1930/**
    19211931 * Display the URL of a WordPress admin CSS file.
    19221932 *
    19231933 * @see WP_Styles::_css_href and its style_loader_src filter.