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:
parent
974625d962
commit
b04d321fb9
@ -98,6 +98,10 @@
|
|||||||
z-index: 160000;
|
z-index: 160000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-customizer .media-modal {
|
||||||
|
z-index: 560000;
|
||||||
|
}
|
||||||
|
|
||||||
.media-modal-backdrop {
|
.media-modal-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -110,6 +114,10 @@
|
|||||||
z-index: 159900;
|
z-index: 159900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-customizer .media-modal-backdrop {
|
||||||
|
z-index: 559900;
|
||||||
|
}
|
||||||
|
|
||||||
.media-modal-close {
|
.media-modal-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
2
wp-includes/css/media-views-rtl.min.css
vendored
2
wp-includes/css/media-views-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -98,6 +98,10 @@
|
|||||||
z-index: 160000;
|
z-index: 160000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-customizer .media-modal {
|
||||||
|
z-index: 560000;
|
||||||
|
}
|
||||||
|
|
||||||
.media-modal-backdrop {
|
.media-modal-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -110,6 +114,10 @@
|
|||||||
z-index: 159900;
|
z-index: 159900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-customizer .media-modal-backdrop {
|
||||||
|
z-index: 559900;
|
||||||
|
}
|
||||||
|
|
||||||
.media-modal-close {
|
.media-modal-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
2
wp-includes/css/media-views.min.css
vendored
2
wp-includes/css/media-views.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1942,6 +1942,7 @@ function wp_enqueue_media( $args = array() ) {
|
|||||||
require_once ABSPATH . WPINC . '/media-template.php';
|
require_once ABSPATH . WPINC . '/media-template.php';
|
||||||
add_action( 'admin_footer', 'wp_print_media_templates' );
|
add_action( 'admin_footer', 'wp_print_media_templates' );
|
||||||
add_action( 'wp_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' );
|
do_action( 'wp_enqueue_media' );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user