WordPress.org

Make WordPress Core

Ticket #25618: 25618.2.patch

File 25618.2.patch, 1.9 KB (added by SergeyBiryukov, 7 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    2828         * @since 3.4.0
    2929         */
    3030        public function __construct() {
    31                 require( ABSPATH . WPINC . '/class-wp-customize-setting.php' );
    32                 require( ABSPATH . WPINC . '/class-wp-customize-section.php' );
    33                 require( ABSPATH . WPINC . '/class-wp-customize-control.php' );
     31                require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' );
     32                require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );
     33                require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );
    3434
    3535                add_filter( 'wp_die_handler', array( $this, 'wp_die_handler' ) );
    3636
  • src/wp-includes/css/media-views.css

     
    9898        z-index: 160000;
    9999}
    100100
     101.wp-customizer .media-modal {
     102        z-index: 560000;
     103}
     104
    101105.media-modal-backdrop {
    102106        position: fixed;
    103107        top: 0;
     
    110114        z-index: 159900;
    111115}
    112116
     117.wp-customizer .media-modal-backdrop {
     118        z-index: 559900;
     119}
     120
    113121.media-modal-close {
    114122        position: absolute;
    115123        text-decoration: none;
  • src/wp-includes/media.php

     
    19421942        require_once ABSPATH . WPINC . '/media-template.php';
    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' );
    19471948}