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
This commit is contained in:
parent
be0bf5b459
commit
41be365adf
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user