Make WordPress Core

Changeset 11385


Ignore:
Timestamp:
05/18/2009 04:56:42 PM (17 years ago)
Author:
ryan
Message:

Add plugin_row_meta filter

File:
1 edited

Legend:

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

    r11383 r11385  
    395395                echo "</td>
    396396                <td class='desc'><p>{$plugin_data['Description']}</p>";
    397                 if ( !empty($plugin_data['Version']) ) {
    398                         printf(__('Version: %s'), $plugin_data['Version']);
    399                         echo ' ';
    400                 }
     397                $plugin_meta = array();
     398                if ( !empty($plugin_data['Version']) )
     399                        $plugin_meta[] = sprintf(__('Version: %s'), $plugin_data['Version']);
    401400                if ( !empty($plugin_data['Author']) ) {
    402401                        $author = $plugin_data['Author'];
    403402                        if ( !empty($plugin_data['AuthorURI']) )
    404403                                $author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
    405                         echo ' <cite>' . sprintf( __('By: %s'), $author ) . '</cite>';
     404                        $plugin_meta[] = ' <cite>' . sprintf( __('By: %s'), $author ) . '</cite>';
    406405                }
     406                $plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context);
     407                echo implode(' ', $plugin_meta);
    407408                echo "</p>";
    408409                echo '</td>
Note: See TracChangeset for help on using the changeset viewer.