diff --git src/wp-admin/index.php src/wp-admin/index.php
index c96e6f2..86bed0a 100644
|
|
wp_dashboard_setup(); |
17 | 17 | wp_enqueue_script( 'dashboard' ); |
18 | 18 | if ( current_user_can( 'edit_theme_options' ) ) |
19 | 19 | wp_enqueue_script( 'customize-loader' ); |
20 | | if ( current_user_can( 'install_plugins' ) ) |
| 20 | if ( current_user_can( 'install_plugins' ) ) { |
21 | 21 | wp_enqueue_script( 'plugin-install' ); |
| 22 | wp_enqueue_script( 'updates' ); |
| 23 | } |
22 | 24 | if ( current_user_can( 'upload_files' ) ) |
23 | 25 | wp_enqueue_script( 'media-upload' ); |
24 | 26 | add_thickbox(); |
diff --git src/wp-admin/js/updates.js src/wp-admin/js/updates.js
index 053aabc..8453799 100644
|
|
|
2117 | 2117 | |
2118 | 2118 | $.support.postMessage = !! window.postMessage; |
2119 | 2119 | |
2120 | | if ( false === $.support.postMessage || null === target ) { |
| 2120 | if ( false === $.support.postMessage || null === target || -1 !== window.parent.location.pathname.indexOf( 'index.php' ) ) { |
2121 | 2121 | return; |
2122 | 2122 | } |
2123 | 2123 | |