WordPress.org

Make WordPress Core

Changeset 21164


Ignore:
Timestamp:
06/28/2012 08:05:15 PM (9 years ago)
Author:
nacin
Message:

Move the 'Delete' bulk action to the bottom in the network themes list tables. Symmetry with the plugins list tables. props trepmal. fixes #21032.

File:
1 edited

Legend:

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

    r20236 r21164  
    241241            $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
    242242        if ( ! $this->is_site_themes ) {
     243            if ( current_user_can( 'update_themes' ) )
     244                $actions['update-selected'] = __( 'Update' );
    243245            if ( current_user_can( 'delete_themes' ) )
    244246                $actions['delete-selected'] = __( 'Delete' );
    245             if ( current_user_can( 'update_themes' ) )
    246                 $actions['update-selected'] = __( 'Update' );
    247247        }
    248248        return $actions;
Note: See TracChangeset for help on using the changeset viewer.