Disable shiny updates from modal based on parent window
The QS method added in [32067] and modified in [32080] doesn't work when the user changes the tab inside the modal. Instead, let's use the parent window's location. Fixes #31739 Built from https://develop.svn.wordpress.org/trunk@32082 git-svn-id: http://core.svn.wordpress.org/trunk@32061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c02682838
commit
0402c0b877
|
@ -481,7 +481,7 @@ window.wp = window.wp || {};
|
||||||
target = window.parent == window ? null : window.parent,
|
target = window.parent == window ? null : window.parent,
|
||||||
$.support.postMessage = !! window.postMessage;
|
$.support.postMessage = !! window.postMessage;
|
||||||
|
|
||||||
if ( $.support.postMessage === false || target === null || window.location.search.indexOf( 'parent=update-core' ) !== -1 )
|
if ( $.support.postMessage === false || target === null || window.parent.location.pathname.indexOf( 'update-core.php' ) !== -1 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -264,7 +264,7 @@ function list_plugin_updates() {
|
||||||
$upgrade_notice = '';
|
$upgrade_notice = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$details_url = self_admin_url('plugin-install.php?tab=plugin-information&parent=update-core&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');
|
||||||
$details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
|
$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);
|
$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);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta4-32081';
|
$wp_version = '4.2-beta4-32082';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue