Use style loader for gears manifest. Props azaozz. fixes #7015

git-svn-id: http://svn.automattic.com/wordpress/trunk@7981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-05-22 15:27:28 +00:00
parent 05f229cef0
commit 526476fbcf
3 changed files with 76 additions and 43 deletions

View File

@@ -1158,13 +1158,15 @@ function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . clean_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
}
/**
* Enqueues the default ThickBox js and css.
* If any of the settings need to be changed, this can be done with another js file
* similar to media-upload.js and theme-preview.js. That file should require array('thickbox')
* to ensure it is loaded after.
*/
function add_thickbox() {
wp_enqueue_script( 'thickbox' );
add_action( 'admin_print_scripts', 'add_thickbox_css' );
}
function add_thickbox_css() {
wp_admin_css( 'css/thickbox' );
wp_enqueue_style( 'thickbox' );
}
/**