[wp-trac] [WordPress Trac] #15648: switch_theme action hook may provide the old template value
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 2 14:16:03 UTC 2010
#15648: switch_theme action hook may provide the old template value
-----------------------------+----------------------------------------------
Reporter: drzraf | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: trivial | Keywords: theme, switch, custom header, defaults
-----------------------------+----------------------------------------------
When someone change its theme, and both support custom header, then the
banner and the text color are not preserved (these options are theme
specific)
Anyway, one may want to preserve these values :
* check if the new theme has its default value
* check if the old theme values are compatible
* ...
* migrate the values
But in order to do this, WordPress should provide the value of the old
theme in use. It would be easy to get it in switch_theme() and to send it
as a second argument to the action hook.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15648>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list