From 6cbf650667d03b5085074eeaccb816da58aefa40 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 11 Dec 2009 17:18:29 +0000 Subject: [PATCH] Show Upgrade Notice for plugins. see #10973 git-svn-id: https://develop.svn.wordpress.org/trunk@12374 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 . " "; } ?>