[wp-trac] [WordPress Trac] #7795: Activate and Deactivate Theme hooks

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 8 21:02:30 UTC 2011


#7795: Activate and Deactivate Theme hooks
-------------------------+------------------------
 Reporter:  jacobsantos  |       Owner:  anonymous
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.3
Component:  Themes       |     Version:  2.7
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |
-------------------------+------------------------
Changes (by scribu):

 * keywords:  needs-patch =>
 * status:  new => closed
 * resolution:   => fixed
 * milestone:  Future Release => 3.3


Comment:

 So, we alredy had a theme deactivation hook and now we have theme
 activation hook as well, since [18656]:

 Theme activation hook: 'after_switch_theme'

 Theme de-activation hook: 'switch_theme'

 It's a little backwards from a theme author's perspective, but it works.

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


More information about the wp-trac mailing list