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

props westonruter.
fixes #25618.

Built from https://develop.svn.wordpress.org/trunk@26589


git-svn-id: http://core.svn.wordpress.org/trunk@26479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-03 20:54:11 +00:00
parent 974625d962
commit b04d321fb9
5 changed files with 19 additions and 2 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;

File diff suppressed because one or more lines are too long

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;

File diff suppressed because one or more lines are too long

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' );
}