Allow wp_enqueue_media() to "just work" in a customizer control.

props westonruter.
fixes #25618.


git-svn-id: https://develop.svn.wordpress.org/trunk@26589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-12-03 20:53:47 +00:00
parent 1962b24925
commit 21c76b2340
2 changed files with 9 additions and 0 deletions

View File

@ -98,6 +98,10 @@
z-index: 160000;
}
.wp-customizer .media-modal {
z-index: 560000;
}
.media-modal-backdrop {
position: fixed;
top: 0;
@ -110,6 +114,10 @@
z-index: 159900;
}
.wp-customizer .media-modal-backdrop {
z-index: 559900;
}
.media-modal-close {
position: absolute;
text-decoration: none;

View File

@ -1942,6 +1942,7 @@ function wp_enqueue_media( $args = array() ) {
require_once ABSPATH . WPINC . '/media-template.php';
add_action( 'admin_footer', 'wp_print_media_templates' );
add_action( 'wp_footer', 'wp_print_media_templates' );
add_action( 'customize_controls_print_footer_scripts', 'wp_print_media_templates' );
do_action( 'wp_enqueue_media' );
}