[wp-trac] [WordPress Trac] #13530: Should switch_to_blog() call $wp_rewrite->init(); ?

WordPress Trac wp-trac at lists.automattic.com
Tue May 25 07:32:41 UTC 2010


#13530: Should switch_to_blog() call $wp_rewrite->init(); ?
-------------------------+--------------------------------------------------
 Reporter:  jimisaacs    |       Owner:                            
     Type:  enhancement  |      Status:  new                       
 Priority:  normal       |   Milestone:  3.0                       
Component:  Multisite    |     Version:  3.0                       
 Severity:  normal       |    Keywords:  swtich_to_blog, wp_rewrite
-------------------------+--------------------------------------------------
 This is more of a question than a report, because I am still not quite
 sure what the intended outcome or procedure is when using
 switch_to_blog().

 My current usage is, get_blog_list()
 Loop through the list calling switch_to_blog(), and then
 restore_current_blog() for each iteration.

 This is the way I used to do things with MU, now I am getting weird
 outcomes having to do with permalink structures for post taxonomies.

 These all seem to disappear when I call $wp_rewrite->init() along with the
 previous calls. So I was wondering what am I doing wrong? Or should this
 call be included in switch_to_blog() ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13530>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list