[wp-trac] [WordPress Trac] #55107: List and Delete button to delete broken plugins

WordPress Trac noreply at wordpress.org
Mon Feb 7 23:42:33 UTC 2022


#55107: List and Delete button to delete broken plugins
-------------------------------+---------------------------------
 Reporter:  gmariani405        |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Plugins            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  ui, administration
-------------------------------+---------------------------------

Comment (by gmariani405):

 In my particular use-case, we use a migration tool that when it overwrites
 the existing installation it empties the folders of plugins that were in
 the prior installation but doesn't delete them. If you then try to install
 a plugin of the same name WordPress says it already exists and refuses.

 Going based on what is explained here (
 https://developer.wordpress.org/plugins/plugin-basics/#getting-started ) I
 would define a "broken" plugin as any folder in the root of plugins that
 does not contain a file within it's root with a valid plugin header.

 So some practical examples:
 1. All files matching this pattern would have to be missing a valid plugin
 header: wp-content/plugins/plugin-name/<any file>.php
 2. There are no files in the root of a plugin folder: wp-content/plugins
 /plugin-name/<no files>

 Basically, if a folder exists in the /plugins folder but isn't valid
 enough to show up in the Plugins list on the admin screen, I would say it
 is broken.

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


More information about the wp-trac mailing list