From 7b043de0172ebb099668a154b35d2bd575cfe544 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Sun, 28 Feb 2010 19:34:57 +0000 Subject: [PATCH] dont flush rewrite rules while in switch_to_blog, see #12383 git-svn-id: https://develop.svn.wordpress.org/trunk@13509 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/ms-edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 16342fd354..28a765ef11 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -218,7 +218,8 @@ switch ( $_GET['action'] ) { 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 $blog_data = stripslashes_deep($_POST[ 'blog' ]);