[wp-trac] Re: [WordPress Trac] #7795: Activate and Deactivate Theme
hooks
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 18 14:02:31 GMT 2008
#7795: Activate and Deactivate Theme hooks
-------------------------------------------------+--------------------------
Reporter: jacobsantos | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Template | Version: 2.7
Severity: normal | Resolution:
Keywords: theme API, has-patch, needs-testing |
-------------------------------------------------+--------------------------
Comment (by jacobsantos):
I don't mind you replacing me as the assigned, since you've done the most
work anyway. I just like being able to track tickets without having to do
a search for 'cc' or reporter. I always seem to forget which on I've used.
I don't see why the functions need to be in the themes directory and not a
subdirectory. It appears to work just like the plugins activation and
deactivation hook. You are hooking into the file name of the main theme,
in which case it will always be {{{THEME_NAME/functions.php}}}, which does
make it easier. It means that they'll just have to include the file that
has those functions in their main file.
This weekend I think I'm going to test it and see how it goes. Hopefully
more people will test it.
--
Ticket URL: <http://trac.wordpress.org/ticket/7795#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list