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:
Andrew Nacin
2012-06-28 20:05:15 +00:00
parent 6727ee1a21
commit b1431cfe1f
@@ -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;
}