Make WordPress Core

Changeset 57620


Ignore:
Timestamp:
02/13/2024 01:22:24 PM (3 years ago)
Author:
costdev
Message:

Plugins: Disable bulk actions for dependencies.

The intended behaviour of Plugin Dependencies is that dependencies cannot be deleted until their dependents are deleted.

While the 'Delete' link was removed from the plugin row, the bulk actions checkbox remained enabled, allowing for deletion of dependencies through bulk actions.

This was unintended behaviour and the bulk actions checkbox is now disabled as intended.

Follow-up to [57545].

Props johnbillion, afragen, knutsp, huzaifaalmesbah, mukesh27, costdev.
Fixes #60471.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r57545 r57620  
    10811081                $disabled    = '';
    10821082
    1083                 if ( $has_active_dependents || $has_unmet_dependencies ) {
     1083                if ( $has_dependents || $has_unmet_dependencies ) {
    10841084                        $disabled = 'disabled';
    10851085                }
Note: See TracChangeset for help on using the changeset viewer.