mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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: https://develop.svn.wordpress.org/trunk@21164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user