From fa2c456b29f50ee60be82865f8f2c3a5c4b87792 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 18 May 2009 16:56:42 +0000 Subject: [PATCH] Add plugin_row_meta filter git-svn-id: http://svn.automattic.com/wordpress/trunk@11385 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugins.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 3dfdd009f0..5dee0523eb 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -394,16 +394,17 @@ function print_plugins_table($plugins, $context = '') { echo ''; echo "

{$plugin_data['Description']}

"; - if ( !empty($plugin_data['Version']) ) { - printf(__('Version: %s'), $plugin_data['Version']); - echo ' '; - } + $plugin_meta = array(); + if ( !empty($plugin_data['Version']) ) + $plugin_meta[] = sprintf(__('Version: %s'), $plugin_data['Version']); if ( !empty($plugin_data['Author']) ) { $author = $plugin_data['Author']; if ( !empty($plugin_data['AuthorURI']) ) $author = '' . $plugin_data['Author'] . ''; - echo ' ' . sprintf( __('By: %s'), $author ) . ''; + $plugin_meta[] = ' ' . sprintf( __('By: %s'), $author ) . ''; } + $plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context); + echo implode(' ', $plugin_meta); echo "

"; echo ' ';