From 41be365adfbd7f118c57eb08db9e4490bb3bfb9c Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 7 Sep 2007 18:53:56 +0000 Subject: [PATCH] Don't show a plugin author byline if no author name has been specified. Props Viper007Bond. fixes #4927 git-svn-id: https://develop.svn.wordpress.org/trunk@6060 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/plugins.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 5f03a7facb..b9e6e7b252 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -152,11 +152,13 @@ if (empty($plugins)) { else $edit = ''; + $author = ( empty($plugin_data['Author']) ) ? '' : ' ' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.'; + echo " {$plugin_data['Title']} {$plugin_data['Version']} -

{$plugin_data['Description']} ".sprintf(__('By %s'), $plugin_data['Author']).".

+

{$plugin_data['Description']}$author

$toggle"; if ( current_user_can('edit_plugins') ) echo "