diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 4bfbaeefb5..3ad6b1c0d8 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -481,7 +481,7 @@ window.wp = window.wp || {}; target = window.parent == window ? null : window.parent, $.support.postMessage = !! window.postMessage; - if ( $.support.postMessage === false || target === null ) + if ( $.support.postMessage === false || target === null || window.location.search.indexOf( 'parent=update-core' ) === -1 ) return; e.preventDefault(); diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index c469120f81..b03aca741f 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -264,7 +264,7 @@ function list_plugin_updates() { $upgrade_notice = ''; } - $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '§ion=changelog&TB_iframe=true&width=640&height=662'); + $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '§ion=changelog&TB_iframe=true&width=640&height=662&parent=update-core'); $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version); $details = sprintf('%3$s.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);