WordPress.org

Make WordPress Core

Ticket #37131: 37131.diff

File 37131.diff, 1.0 KB (added by swissspidy, 5 years ago)
  • src/wp-admin/index.php

    diff --git src/wp-admin/index.php src/wp-admin/index.php
    index c96e6f2..86bed0a 100644
    wp_dashboard_setup(); 
    1717wp_enqueue_script( 'dashboard' );
    1818if ( current_user_can( 'edit_theme_options' ) )
    1919        wp_enqueue_script( 'customize-loader' );
    20 if ( current_user_can( 'install_plugins' ) )
     20if ( current_user_can( 'install_plugins' ) ) {
    2121        wp_enqueue_script( 'plugin-install' );
     22        wp_enqueue_script( 'updates' );
     23}
    2224if ( current_user_can( 'upload_files' ) )
    2325        wp_enqueue_script( 'media-upload' );
    2426add_thickbox();
  • src/wp-admin/js/updates.js

    diff --git src/wp-admin/js/updates.js src/wp-admin/js/updates.js
    index 053aabc..8453799 100644
     
    21172117
    21182118                        $.support.postMessage = !! window.postMessage;
    21192119
    2120                         if ( false === $.support.postMessage || null === target ) {
     2120                        if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'index.php' ) ) {
    21212121                                return;
    21222122                        }
    21232123