[wp-trac] [WordPress Trac] #17833: Auto update plugins does not activate activation hooks

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 18 05:52:36 UTC 2011


#17833: Auto update plugins does not activate activation hooks
-----------------------------+----------------------
 Reporter:  opajaap          |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Upgrade/Install  |     Version:  3.1.3
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |
-----------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 This has been a design choice. In the past, the activation hooks ran but
 not the deactivation hooks (as too many plugins would remove data on
 deactivation).

 The suggested method is to utilise a 'plugin_version' option, and upgrade
 any options, and database tables when plugin_version != Hardcoded version
 in plugin file (And do it when is_Admin() or similar).

 See #14915

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17833#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list