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.
Built from https://develop.svn.wordpress.org/trunk@57620


git-svn-id: http://core.svn.wordpress.org/trunk@57121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
costdev 2024-02-13 13:24:10 +00:00
parent 8cd718b010
commit b927ce0028
2 changed files with 2 additions and 2 deletions

View File

@ -1080,7 +1080,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
$checkbox_id = 'checkbox_' . md5( $plugin_file );
$disabled = '';
if ( $has_active_dependents || $has_unmet_dependencies ) {
if ( $has_dependents || $has_unmet_dependencies ) {
$disabled = 'disabled';
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57619';
$wp_version = '6.5-alpha-57620';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.