Make WordPress Core


Ignore:
Timestamp:
05/20/2008 05:19:33 PM (17 years ago)
Author:
ryan
Message:

Theme preview and thickbox CSS cleanup. Props azaozz. see #5486

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r7959 r7961  
    11401140            $_file = $color->url;
    11411141            $_file = ('css/colors-rtl' == $file) ? str_replace('.css','-rtl.css',$_file) : $_file;
     1142        } elseif ( 'css/thickbox' == $file ) {
     1143            $_file = get_option( 'siteurl' ) . "/wp-includes/js/thickbox/thickbox.css";
    11421144        } else {
    11431145            $_file = get_option( 'siteurl' ) . "/wp-admin/$file.css";
     
    11561158        echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( $rtl ) . "' type='text/css' />\n", $rtl );
    11571159    }
     1160}
     1161
     1162function add_thickbox() {
     1163    wp_enqueue_script( 'thickbox' );
     1164    add_action( 'admin_print_scripts', 'add_thickbox_css' );
     1165}
     1166
     1167function add_thickbox_css() {
     1168    wp_admin_css( 'css/thickbox' );
    11581169}
    11591170
Note: See TracChangeset for help on using the changeset viewer.