Disable modal initiated shiny updates on wp-admin/update-core.php
We don't have links to update a single plugin on wp-admin/update-core.php so we can't initiate a shiny update there. Fixes #31739 git-svn-id: https://develop.svn.wordpress.org/trunk@32067 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2d5237851
commit
6078d22a0a
|
@ -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();
|
||||
|
|
|
@ -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('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
|
||||
|
||||
|
|
Loading…
Reference in New Issue