[wp-trac] [WordPress Trac] #35145: Plugins: introduce a check for activated plugins when deleting plugins in the same directory

WordPress Trac noreply at wordpress.org
Fri Dec 18 08:00:28 UTC 2015


#35145: Plugins: introduce a check for activated plugins when deleting plugins in
the same directory
-------------------------------------+----------------------------
 Reporter:  afercia                  |       Owner:  swissspidy
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.5
Component:  Plugins                  |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui, multisite
-------------------------------------+----------------------------

Comment (by swissspidy):

 [attachment:35145.2.diff] is a new patch that prevents bulk deletion of
 plugins when there's at least 1 active plugin the same folder.

 For this, I moved the logic into a new `_is_plugin_bundle_active()`
 function.

 Patch in action:

 [[Image(https://cldup.com/SXi-LwWcu9.png, 600px)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35145#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list