[wp-trac] [WordPress Trac] #7795: Activate and Deactivate Theme hooks

WordPress Trac noreply at wordpress.org
Sun Jun 7 19:15:30 UTC 2015


#7795: Activate and Deactivate Theme hooks
----------------------------------+-----------------------------
 Reporter:  jacobsantos           |       Owner:
     Type:  enhancement           |      Status:  assigned
 Priority:  normal                |   Milestone:  Future Release
Component:  Themes                |     Version:  2.7
 Severity:  normal                |  Resolution:
 Keywords:  revert needs-refresh  |     Focuses:
----------------------------------+-----------------------------
Changes (by abdessamad idrissi):

 * keywords:  revert => revert needs-refresh


Comment:

 Any updates on this after 7 years? A quick fix would be now to use
 switch_theme hook and filter the passed $theme argument to see if it is
 the current them then if not return;

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


More information about the wp-trac mailing list