Move the 'Delete' bulk action to the bottom in the network themes list tables. Symmetry with the plugins list tables. props trepmal. fixes #21032.
git-svn-id: http://core.svn.wordpress.org/trunk@21164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bdf490a7c6
commit
a7249bfee8
|
@ -240,10 +240,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
if ( 'disabled' != $status )
|
||||
$actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
|
||||
if ( ! $this->is_site_themes ) {
|
||||
if ( current_user_can( 'delete_themes' ) )
|
||||
$actions['delete-selected'] = __( 'Delete' );
|
||||
if ( current_user_can( 'update_themes' ) )
|
||||
$actions['update-selected'] = __( 'Update' );
|
||||
if ( current_user_can( 'delete_themes' ) )
|
||||
$actions['delete-selected'] = __( 'Delete' );
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue