[wp-trac] [WordPress Trac] #60471: Plugin dependencies: Dependent of an inactive plugin can be deleted via bulk actions
WordPress Trac
noreply at wordpress.org
Thu Feb 8 12:19:12 UTC 2024
#60471: Plugin dependencies: Dependent of an inactive plugin can be deleted via
bulk actions
-----------------------------+------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Upgrade/Install | Version: trunk
Severity: minor | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by knutsp):
Replying to [ticket:60471 johnbillion]:
> With plugin-b that depends on plugin-a via its `Requires Plugins:`
header and neither plugin active on the site, it should not be possible to
delete plugin-a, however this can be done via the Bulk Actions menu.
No need to disallow deleting (an inactive) plugin no matter how many other
(inactive) plugins that (potentially) depend on it. Dependency means to
disallow activating depending plugins when depends on plugin is not active
(inactive or missing), and disallow deactivating a plugin that other
''active'' plugin depends on.
Replying to [ticket:60471 afragen]:
> The error is in the explainer text showing up when it shouldn’t.
Yes, but why does this text mention deleting at all? Active plugins cannot
be deleted through WordPress Admin. When not able to deactivate, not being
able to delete is implicit.
I look forward to see how gracefully WordPress will handle the situation
where a plugin that other active plugins depends on is suddenly deleted
externally (from the file system), or deactivated my foreign manupuilation
of the active plugins option.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60471#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list