[wp-trac] [WordPress Trac] #31625: Function register_uninstall_hook doesn't have a method to remove the outdated data

WordPress Trac noreply at wordpress.org
Tue Jul 5 13:27:40 UTC 2016


#31625: Function register_uninstall_hook doesn't have a method to remove the
outdated data
-------------------------------------+--------------------------
 Reporter:  voron_eril               |       Owner:  dd32
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.6
Component:  Plugins                  |     Version:  4.1.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+--------------------------
Changes (by ocean90):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37965"]:
 {{{
 #!CommitTicketReference repository="" revision="37965"
 Plugins: Clean up `uninstall_plugins` option during database upgrade.

 `register_uninstall_hook()` is designed to be given a function callback
 (or a static class variable), not an array/object instance. This got
 blocked in [16339] but the option itself was never cleaned up.

 Props polevaultweb.
 Fixes #31625.
 }}}

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


More information about the wp-trac mailing list