Fix logic for details based shiny updates.
This fixes two problems. TB seems to sometimes strip window.location.search variables after tb ones, so we need to move it forward. Also fixes logic error. See #31739 Built from https://develop.svn.wordpress.org/trunk@32080 git-svn-id: http://core.svn.wordpress.org/trunk@32059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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&parent=update-core');
|
||||
$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_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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user