[wp-trac] [WordPress Trac] #15648: switch_theme action hook may provide the old template value

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 30 20:00:38 UTC 2011


#15648: switch_theme action hook may provide the old template value
-------------------------+-----------------------------
 Reporter:  drzraf       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Themes       |     Version:
 Severity:  trivial      |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by drzraf):

 * cc: raphael.droz@… (added)


Comment:

 simple patch attached.
 The only consumer of this hook in the core is "wp-includes/default-
 widgets.php" which doesn't use the arguments.
 Backward-compatibility may be an issue until one $(grep) for
 "add_action.*switch_theme" in the plugins & themes repositories to have a
 clear sight about what is using it isn't ?

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


More information about the wp-trac mailing list