mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Use style loader for gears manifest. Props azaozz. fixes #7015
git-svn-id: https://develop.svn.wordpress.org/trunk@7981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user