From 776d9aadf0f1e14258ecaf70d39ae8bd83eadf0d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 11 Dec 2009 17:18:29 +0000 Subject: [PATCH] Show Upgrade Notice for plugins. see #10973 git-svn-id: http://svn.automattic.com/wordpress/trunk@12374 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index a586fa2117..473ec61575 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -173,10 +173,15 @@ function list_plugin_updates() { } else { $compat = ''; } + if ( isset($plugin_data->update->upgrade_notice) ) { + $upgrade_notice = '
' . strip_tags($plugin_data->update->upgrade_notice); + } else { + $upgrade_notice = ''; + } echo " - {$plugin_data->Name}" . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . " + {$plugin_data->Name}" . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . $upgrade_notice . " "; } ?>