From 0846527d176859226d9dedc7d9cf33906ead56c5 Mon Sep 17 00:00:00 2001 From: wpmuguru 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: http://svn.automattic.com/wordpress/trunk@13509 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 16342fd35..28a765ef1 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' ]);