Make WordPress Core


Ignore:
Timestamp:
10/23/2010 11:22:00 AM (14 years ago)
Author:
scribu
Message:

Use row_actions() in WP_Plugins_Table. See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/list-table.php

    r15904 r15924  
    274274     *
    275275     * @param array $actions The list of actions
     276     * @param bool $always_visible Wether the actions should be always visible
    276277     * @return string
    277278     */
    278     function row_actions( $actions ) {
     279    function row_actions( $actions, $always_visible = false ) {
    279280        $action_count = count( $actions );
    280281        $i = 0;
     
    283284            return '';
    284285
    285         $out = '<div class="row-actions">';
     286        $out = '<div class="' . ( $always_visible ? 'row-actions-visible' : 'row-actions' ) . '">';
    286287        foreach ( $actions as $action => $link ) {
    287288            ++$i;
Note: See TracChangeset for help on using the changeset viewer.