WordPress.org

Make WordPress Core

Changeset 11389


Ignore:
Timestamp:
05/18/09 22:17:58 (5 years ago)
Author:
ryan
Message:

Move visit plugin site link from actions to meta. see #9849

File:
1 edited

Legend:

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

    r11385 r11389  
    370370            $actions[] = '<a href="plugin-editor.php?file=' . $plugin_file . '" title="' . __('Open this file in the Plugin Editor') . '" class="edit">' . __('Edit') . '</a>'; 
    371371 
    372         if ( ! empty($plugin_data['PluginURI']) ) { 
    373             $actions[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . __( 'Visit plugin homepage' ) . '">' . __('View Site') . '</a>'; 
    374         } 
    375  
    376372        if ( ! $is_active && current_user_can('delete_plugins') ) 
    377373            $actions[] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&amp;checked[]=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page, 'bulk-manage-plugins') . '" title="' . __('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>'; 
     
    397393        $plugin_meta = array(); 
    398394        if ( !empty($plugin_data['Version']) ) 
    399             $plugin_meta[] = sprintf(__('Version: %s'), $plugin_data['Version']); 
     395            $plugin_meta[] = sprintf(__('Version %s'), $plugin_data['Version']); 
    400396        if ( !empty($plugin_data['Author']) ) { 
    401397            $author = $plugin_data['Author']; 
    402398            if ( !empty($plugin_data['AuthorURI']) ) 
    403399                $author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>'; 
    404             $plugin_meta[] = ' <cite>' . sprintf( __('By: %s'), $author ) . '</cite>'; 
     400            $plugin_meta[] = sprintf( __('By %s'), $author ); 
     401        } 
     402        if ( ! empty($plugin_data['PluginURI']) ) { 
     403            $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . __( 'Visit plugin site' ) . '">' . __('Visit plugin site') . '</a>'; 
    405404        } 
    406405        $plugin_meta = apply_filters('plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $context); 
    407         echo implode(' ', $plugin_meta); 
     406        echo implode(' | ', $plugin_meta); 
    408407        echo "</p>"; 
    409408        echo '</td> 
Note: See TracChangeset for help on using the changeset viewer.