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:
parent
1962b24925
commit
21c76b2340
@ -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;
|
||||
|
@ -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' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user