WordPress.org

Make WordPress Core

Changeset 15924


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

Use row_actions() in WP_Plugins_Table. See #14579

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r15912 r15924  
    36073607            <td></td>
    36083608            <td class='plugin-title'>";
    3609             echo '<div class="row-actions-visible">';
    3610             foreach ( $actions as $action => $link ) {
    3611                 $sep = end( $actions ) == $link ? '' : ' | ';
    3612                 echo "<span class='$action'>$link$sep</span>";
    3613             }
    3614             echo "</div></td>
     3609
     3610            echo $this->row_actions( $actions, true );
     3611
     3612            echo "</td>
    36153613            <td class='desc'>";
    36163614            $plugin_meta = array();
  • 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.