[wp-trac] [WordPress Trac] #7795: Activate and Deactivate Theme hooks
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 19 06:20:22 UTC 2010
#7795: Activate and Deactivate Theme hooks
-------------------------+--------------------------------------------------
Reporter: jacobsantos | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 2.7
Severity: normal | Keywords: needs-patch
-------------------------+--------------------------------------------------
Comment(by dd32):
> For the deactivation hook to work, the functions.php of the old theme
has to be loaded. I think the most logical time to call it would be just
before switching to the new theme.
Current generation themes utilise the 'switch_themes' action, which fires
on the processing of the theme-change option. That should be the last
"page load" which utilises that theme in its current state.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7795#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list