[wp-trac] [WordPress Trac] #10570: Flush/Init the $wp_rewrite on theme change.

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 9 00:08:55 UTC 2009


#10570: Flush/Init the $wp_rewrite on theme change.
-------------------------+--------------------------------------------------
 Reporter:  frumph       |       Owner:                          
     Type:  enhancement  |      Status:  new                     
 Priority:  high         |   Milestone:  Future Release          
Component:  Themes       |     Version:  2.8                     
 Severity:  normal       |    Keywords:  dev-feedback 2nd-opinion
-------------------------+--------------------------------------------------
Changes (by dd32):

  * keywords:  => dev-feedback 2nd-opinion
  * version:  => 2.8
  * milestone:  Unassigned => Future Release


Comment:

 Theme authors may hook the 'switch_themes' action to catch when the theme
 is being deactivated.

 {{{
 add_action('switch_themes', array(&$GLOBALS['wp_rewrite'], 'flush_rules')
 );
 }}}
 would work for theme authors(who should be taking care of it IMO), or in
 core..

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


More information about the wp-trac mailing list