dont flush rewrite rules while in switch_to_blog, see #12383

git-svn-id: http://svn.automattic.com/wordpress/trunk@13509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-02-28 19:34:57 +00:00
parent 3bf738fcc2
commit 0846527d17
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ switch ( $_GET['action'] ) {
update_option( 'home', $blog_address ); update_option( 'home', $blog_address );
} }
$wp_rewrite->flush_rules(); // rewrite rules can't be flushed during switch to blog
update_option( 'rewrite_rules', '' );
// update blogs table // update blogs table
$blog_data = stripslashes_deep($_POST[ 'blog' ]); $blog_data = stripslashes_deep($_POST[ 'blog' ]);