WordPress.org

Make WordPress Core

Ticket #22060: 22060.diff

File 22060.diff, 1017 bytes (added by sushkov, 6 years ago)
  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index 1c9921a..eb87ecd 100644
    if ( wp_is_mobile() ) 
    1717
    1818if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
    1919        add_thickbox();
    20 
    21         wp_enqueue_script( 'media-upload' );
    22         wp_enqueue_style( 'media-views' );
    23         wp_plupload_default_settings();
    24         add_action( 'admin_footer', 'wp_print_media_templates' );
    2520}
    2621
    2722/**
  • wp-admin/includes/media.php

    diff --git wp-admin/includes/media.php wp-admin/includes/media.php
    index 0e5f40d..1ad3c0d 100644
    function media_buttons($editor_id = 'content') { 
    381381        wp_enqueue_style( 'media-views' );
    382382        wp_plupload_default_settings();
    383383        add_action( 'admin_footer', 'wp_print_media_templates' );
     384        add_action( 'wp_footer', 'wp_print_media_templates' );
    384385
    385386        $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
    386387