[wp-trac] [WordPress Trac] #26904: General 'delete_plugins' hook needed

WordPress Trac noreply at wordpress.org
Wed Jan 22 16:31:20 UTC 2014


#26904: General 'delete_plugins' hook needed
-----------------------------+------------------------------
 Reporter:  Veraxus          |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:  3.8
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |
-----------------------------+------------------------------
Changes (by Veraxus):

 * keywords:   => needs-patch


Comment:

 Replying to [comment:1 TobiasBg]:
 > This would be very unreliable as it would not catch the manual
 uninstallation of a plugin by directly deleting it on the server, e.g. via
 FTP or SSH...

 Right now I'm only trying to log actions taken through the admin. If a
 file changes on the server, I wouldn't be able to assign "blame", which is
 the primary reason I'm making this.

 That said, my Wish List includes using WordPress's "remote change
 detection" functionality to log remote deletions as well... but it's just
 a "would be nice to have" feature.

 I've been experimenting with a 'delete_plugins' hook instead ( in
 delete_plugins() ), and that is working ''very'' reliably for detecting
 when plugins are deleted from the admin. Once I've done some more testing
 (bulk deletes, custom and automatic uninstalls, etc) I'll post that patch.

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


More information about the wp-trac mailing list