Make WordPress Core


Ignore:
Timestamp:
05/22/2008 12:06:41 AM (14 years ago)
Author:
ryan
Message:

wp_admin_css() improvements. Props mdawaffe. see #7011

File:
1 edited

Legend:

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

    r7974 r7979  
    127127<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; <?php _e('WordPress'); ?></title>
    128128<?php
    129 wp_admin_css( 'css/global' );
     129wp_admin_css( 'global' );
    130130wp_admin_css();
    131 wp_admin_css( 'css/colors' );
     131wp_admin_css( 'colors' );
     132if ( 0 === strpos( $content_func, 'media' ) )
     133    wp_admin_css( 'media' );
     134
    132135?>
    133136<script type="text/javascript">
     
    138141<?php
    139142do_action('admin_print_scripts');
     143do_action('admin_print_styles');
    140144do_action('admin_head');
    141145if ( is_string($content_func) )
     
    182186add_action( 'admin_print_scripts-page-new.php', 'add_thickbox' );
    183187add_action( 'admin_print_scripts-page.php', 'add_thickbox' );
    184 
    185 function media_admin_css() {
    186     wp_admin_css('css/media');
    187 }
    188188
    189189add_action('media_upload_media', 'media_upload_handler');
     
    12061206add_action('media_upload_video', 'media_upload_video');
    12071207add_action('media_upload_file', 'media_upload_file');
    1208 add_action('admin_head_media_upload_type_form', 'media_admin_css');
    12091208
    12101209add_filter('media_upload_gallery', 'media_upload_gallery');
    1211 add_action('admin_head_media_upload_gallery_form', 'media_admin_css');
    12121210
    12131211add_filter('media_upload_library', 'media_upload_library');
    1214 add_action('admin_head_media_upload_library_form', 'media_admin_css');
    12151212
    12161213?>
Note: See TracChangeset for help on using the changeset viewer.