diff --git a/src/wp-admin/index.php b/src/wp-admin/index.php index c96e6f2179..86bed0adfc 100644 --- a/src/wp-admin/index.php +++ b/src/wp-admin/index.php @@ -17,8 +17,10 @@ wp_dashboard_setup(); wp_enqueue_script( 'dashboard' ); if ( current_user_can( 'edit_theme_options' ) ) wp_enqueue_script( 'customize-loader' ); -if ( current_user_can( 'install_plugins' ) ) +if ( current_user_can( 'install_plugins' ) ) { wp_enqueue_script( 'plugin-install' ); + wp_enqueue_script( 'updates' ); +} if ( current_user_can( 'upload_files' ) ) wp_enqueue_script( 'media-upload' ); add_thickbox(); diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 37291e0a3d..70193421bd 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -2111,7 +2111,7 @@ $.support.postMessage = !! window.postMessage; - if ( false === $.support.postMessage || null === target ) { + if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'index.php' ) ) { return; }