Should switch_to_blog() call $wp_rewrite->init(); ?
|Reported by:||jimisaacs||Owned by:||wpmuguru|
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() ?