From 9bfad4c43ec17556e78891238d4dbdcc6db9be81 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 19 Oct 2011 14:51:48 +0000 Subject: [PATCH] Better padding and information on the plugins list on Dashboard/Updates. props otto42. fixes #17406. git-svn-id: http://svn.automattic.com/wordpress/trunk@19003 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 6eb14670e..5830eb641 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) . $compat . $upgrade_notice . " +

{$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 . "

"; } ?> @@ -299,7 +308,7 @@ function list_theme_updates() { echo " - {$theme_data->Name}" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . " + {$theme_data->Name}" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . " "; } ?>