switch_theme action hook may provide the old template value
|Reported by:||drzraf||Owned by:|
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.