From af18e8422ac30966c355bbcf9772521b5e43deea Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 May 2009 05:19:53 +0000 Subject: [PATCH] Add hook for adding info to plugin update message. Props JohnLamansky. fixes #9553 git-svn-id: http://svn.automattic.com/wordpress/trunk@11193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index a6448cd539..e0ccf1562a 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -161,7 +161,9 @@ function wp_plugin_update_row( $file, $plugin_data ) { printf( __('There is a new version of %1$s available. View version %3$s Details automatic upgrade unavailable for this plugin.'), $plugin_data['Name'], $details_url, $r->new_version); else printf( __('There is a new version of %1$s available. View version %3$s Details or upgrade automatically.'), $plugin_data['Name'], $details_url, $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file) ); - + + do_action( "in_plugin_update_message-$file", $plugin_data, $r ); + echo ''; } add_action( 'after_plugin_row', 'wp_plugin_update_row', 10, 2 );