WordPress.org

Make WordPress Core

Changeset 12982


Ignore:
Timestamp:
02/06/2010 05:15:26 AM (8 years ago)
Author:
dd32
Message:

Move admin CSS colour themes to the admin_init hook. Fixes #11625

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r12846 r12982  
    6767
    6868wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));
    69 
    70 wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
    71 wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
    7269
    7370wp_enqueue_script( 'common' );
  • trunk/wp-includes/default-filters.php

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

    r12943 r12982  
    19971997
    19981998/**
     1999 * Registers the default Admin color themes
     2000 *
     2001 * @since 3.0.0
     2002 */
     2003function register_admin_color_themes() {
     2004    wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
     2005    wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));}
     2006
     2007/**
    19992008 * Display the URL of a WordPress admin CSS file.
    20002009 *
Note: See TracChangeset for help on using the changeset viewer.