[wp-trac] [WordPress Trac] #13602: register_activation_hook for themes too.

WordPress Trac wp-trac at lists.automattic.com
Fri May 28 18:39:43 UTC 2010


#13602: register_activation_hook for themes too.
-------------------------+--------------------------------------------------
 Reporter:  F J Kaiser   |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.1
Component:  Themes       |     Version:     
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 After getting around the settings API i found out, that it's meant for
 plugins, but useable for themes too. The only thing, that doesn't work is
 register_acitvation_hook, because of the use of the
 plugin_basename()-function. You can find both functions in /wp-
 includes/plugin.php line 490 and line 547 to take a look.

 Benefits for themes would be a) a much clearer structure possible in
 admin-option-page files and b) you could opt in default-options or check
 for different stuff if it's there.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13602>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list