WordPress.org

Make WordPress Core

Changeset 26589


Ignore:
Timestamp:
12/03/2013 08:53:47 PM (7 years ago)
Author:
nacin
Message:

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

props westonruter.
fixes #25618.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r26455 r26589  
    9999}
    100100
     101.wp-customizer .media-modal {
     102    z-index: 560000;
     103}
     104
    101105.media-modal-backdrop {
    102106    position: fixed;
     
    109113    opacity: 0.7;
    110114    z-index: 159900;
     115}
     116
     117.wp-customizer .media-modal-backdrop {
     118    z-index: 559900;
    111119}
    112120
  • trunk/src/wp-includes/media.php

    r26526 r26589  
    19431943    add_action( 'admin_footer', 'wp_print_media_templates' );
    19441944    add_action( 'wp_footer', 'wp_print_media_templates' );
     1945    add_action( 'customize_controls_print_footer_scripts', 'wp_print_media_templates' );
    19451946
    19461947    do_action( 'wp_enqueue_media' );
Note: See TracChangeset for help on using the changeset viewer.