[wp-trac] [WordPress Trac] #60471: Plugin dependencies: Dependent of an inactive plugin can be deleted via bulk actions

WordPress Trac noreply at wordpress.org
Wed Feb 7 22:30:39 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:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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.

 To reproduce:

 * Have plugin-b that depends on plugin-a
 * Neither plugin is active
 * Observe the message on the Plugins admin screen for plugin-a: `Note:
 this plugin cannot be deactivated or deleted until the plugins that
 require it are deactivated or deleted`
 * Check the checkbox next to plugin-a
 * In the Bulk Actions dropdown select Delete
 * Press Apply
 * Observe that plugin-a gets deleted

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60471>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list