[wp-trac] [WordPress Trac] #22401: Add information about old theme to 'theme_switched' action

WordPress Trac noreply at wordpress.org
Mon Dec 7 19:25:11 UTC 2015


#22401: Add information about old theme to 'theme_switched' action
-------------------------------------+------------------------------
 Reporter:  evansolomon              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+------------------------------

Comment (by obenland):

 I anticipate back compat issue if we moved `after_switch_theme` to the
 same page load as `switch_theme` since we're changing the context in which
 the action is fired. Default themes checking for the required WP version
 couldn't self deactivate anymore for example.

 No objections to adding old theme info to `switch_theme` though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22401#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list