WordPress.org

Make WordPress Core

Changeset 6060


Ignore:
Timestamp:
09/07/07 18:53:56 (7 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r5913 r6060  
    153153            $edit = ''; 
    154154 
     155        $author = ( empty($plugin_data['Author']) ) ? '' :  ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>'; 
     156 
    155157        echo " 
    156158    <tr $style> 
    157159        <td class='name'>{$plugin_data['Title']}</td> 
    158160        <td class='vers'>{$plugin_data['Version']}</td> 
    159         <td class='desc'><p>{$plugin_data['Description']} <cite>".sprintf(__('By %s'), $plugin_data['Author']).".</cite></p></td> 
     161        <td class='desc'><p>{$plugin_data['Description']}$author</p></td> 
    160162        <td class='togl'>$toggle</td>"; 
    161163        if ( current_user_can('edit_plugins') ) 
Note: See TracChangeset for help on using the changeset viewer.