[wp-trac] [WordPress Trac] #36705: Read-only plugins are uninstalled before deletion fails

WordPress Trac noreply at wordpress.org
Thu Apr 28 20:06:06 UTC 2016


#36705: Read-only plugins are uninstalled before deletion fails
----------------------------+-----------------------------
 Reporter:  andy            |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:  4.5.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Plugin uninstall happens before deletion is attempted. If the plugin's
 files are read-only, the plugins list action says "Delete" but all that
 happens is uninstall and an error.

 Plugins that cannot be deleted because they are read-only in the
 filesystem should not have Delete buttons. `is_writable()` should be
 checked while constructing the actions. If read-only, either remove the
 button or replace it with an action which deletes the plugin's data and
 leaves the files. I prefer the latter.

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


More information about the wp-trac mailing list