WordPress.org

Make WordPress Core

Ticket #36704: 36704-no-bulk-delete.diff

File 36704-no-bulk-delete.diff, 623 bytes (added by andy, 5 years ago)

Remove delete from plugin bulk actions

  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

     
    423423                if ( !is_multisite() || $this->screen->in_admin( 'network' ) ) {
    424424                        if ( current_user_can( 'update_plugins' ) )
    425425                                $actions['update-selected'] = __( 'Update' );
    426                         if ( current_user_can( 'delete_plugins' ) && ( 'active' != $status ) )
    427                                 $actions['delete-selected'] = __( 'Delete' );
    428426                }
    429427
    430428                return $actions;