Don't show a plugin author byline if no author name has been specified. Props Viper007Bond. fixes #4927

git-svn-id: http://svn.automattic.com/wordpress/trunk@6060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-07 18:53:56 +00:00
parent 229a52b3a1
commit 23b1e871a1
1 changed files with 3 additions and 1 deletions

View File

@ -152,11 +152,13 @@ if (empty($plugins)) {
else
$edit = '';
$author = ( empty($plugin_data['Author']) ) ? '' : ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>';
echo "
<tr $style>
<td class='name'>{$plugin_data['Title']}</td>
<td class='vers'>{$plugin_data['Version']}</td>
<td class='desc'><p>{$plugin_data['Description']} <cite>".sprintf(__('By %s'), $plugin_data['Author']).".</cite></p></td>
<td class='desc'><p>{$plugin_data['Description']}$author</p></td>
<td class='togl'>$toggle</td>";
if ( current_user_can('edit_plugins') )
echo "