WordPress.org

Make WordPress Core

Ticket #6167: 6167.diff

File 6167.diff, 1.9 KB (added by andy, 10 years ago)

move color definitions so they are present in non-wp-header.php pages like the upload iframe

  • wp-admin/includes/media.php

     
    128128<?php
    129129wp_admin_css( 'css/global' );
    130130wp_admin_css();
    131 wp_admin_css( 'css/colors-classic' );
     131wp_admin_css( 'css/colors' );
    132132?>
    133133<script type="text/javascript">
    134134//<![CDATA[
  • wp-admin/admin.php

     
    2626
    2727wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
    2828
     29wp_admin_css_color('classic', __('Classic'), get_option( 'siteurl' ) . "/wp-admin/css/colors-classic.css", array('#07273E', '#14568A', '#D54E21', '#2683AE'));
     30wp_admin_css_color('fresh', __('Fresh'), get_option( 'siteurl' ) . "/wp-admin/css/colors-fresh.css", array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
     31
    2932wp_enqueue_script( 'common' );
    3033wp_enqueue_script( 'jquery-color' );
    3134
  • wp-admin/admin-header.php

     
    2828<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    2929<title><?php bloginfo('name') ?> &rsaquo; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title>
    3030<?php
    31 wp_admin_css_color('classic', __('Classic'), get_option( 'siteurl' ) . "/wp-admin/css/colors-classic.css", array('#07273E', '#14568A', '#D54E21', '#2683AE'));
    32 wp_admin_css_color('fresh', __('Fresh'), get_option( 'siteurl' ) . "/wp-admin/css/colors-fresh.css", array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
    3331wp_admin_css( 'css/global' );
    3432wp_admin_css();
    3533wp_admin_css( 'css/colors' );