diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 6eb14670e6..5830eb6417 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -9,6 +9,10 @@ /** WordPress Administration Bootstrap */ require_once('./admin.php'); +wp_enqueue_style( 'plugin-install' ); +wp_enqueue_script( 'plugin-install' ); +add_thickbox(); + if ( is_multisite() && ! is_network_admin() ) { wp_redirect( network_admin_url( 'update-core.php' ) ); exit(); @@ -246,10 +250,15 @@ function list_plugin_updates() { } else { $upgrade_notice = ''; } + + $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&TB_iframe=true&width=640&height=662'); + $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); + echo "
{$plugin_data->Name}
" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "