[wp-trac] [WordPress Trac] #14849: Rewrite rules should be flushed when you switch themes

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 12 15:37:44 UTC 2010

#14849: Rewrite rules should be flushed when you switch themes
 Reporter:  jorbin       |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.1      
Component:  Permalinks   |     Version:           
 Severity:  normal       |    Keywords:  has-patch

Comment(by nacin):

 Replying to [comment:2 filosofo]:
 > But it seems that, like plugins, themes that need flushed rules should
 handle it themselves.
 Unfortunately, there's no activation hook for them to do so. (For example
 P2 uses an option to store whether rules have been flushed.) I suggested
 this in response to a question for how to handle things that add rewrite

 I don't think this patch will work, though, because the new theme isn't
 included on that pageload so the old rules will still be regenerated.
 Sounds to me that to do an activation hook for themes, we need to add an
 autoloaded option to keep track.

Ticket URL: <http://core.trac.wordpress.org/ticket/14849#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list