Add plugin_row_meta filter
git-svn-id: https://develop.svn.wordpress.org/trunk@11385 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b91fbde89f
commit
36a5a9137f
@ -394,16 +394,17 @@ function print_plugins_table($plugins, $context = '') {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo "</td>
|
echo "</td>
|
||||||
<td class='desc'><p>{$plugin_data['Description']}</p>";
|
<td class='desc'><p>{$plugin_data['Description']}</p>";
|
||||||
if ( !empty($plugin_data['Version']) ) {
|
$plugin_meta = array();
|
||||||
printf(__('Version: %s'), $plugin_data['Version']);
|
if ( !empty($plugin_data['Version']) )
|
||||||
echo ' ';
|
$plugin_meta[] = sprintf(__('Version: %s'), $plugin_data['Version']);
|
||||||
}
|
|
||||||
if ( !empty($plugin_data['Author']) ) {
|
if ( !empty($plugin_data['Author']) ) {
|
||||||
$author = $plugin_data['Author'];
|
$author = $plugin_data['Author'];
|
||||||
if ( !empty($plugin_data['AuthorURI']) )
|
if ( !empty($plugin_data['AuthorURI']) )
|
||||||
$author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
$author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
||||||
echo ' <cite>' . sprintf( __('By: %s'), $author ) . '</cite>';
|
$plugin_meta[] = ' <cite>' . sprintf( __('By: %s'), $author ) . '</cite>';
|
||||||
}
|
}
|
||||||
|
$plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context);
|
||||||
|
echo implode(' ', $plugin_meta);
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
echo '</td>
|
echo '</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
Loading…
Reference in New Issue
Block a user