Multisite 3.1.3 Upgrade Redirect Loop Network Admin & Plugins

I have WordPress MultiSite and was upgrading from 3.0.5 to 3.1.3. Both my Network Admin and my website displayed redirecting loop errors. The website was initally caused by the Plugins, so I disabled those and the redirect loop error was removed. However the Network Admin error remained. My server provider found code in the admin.php that was causing the issue:

We had modifed the following code from the file “admin.php” in the path “/wp-admin/network”.

=========== Previous Code

if ( ( $current_blog->domain != $current_site->domain ) || ( $current_blog->path != $current_site->path ) ) {
wp_redirect( network_admin_url() );
exit;

=========== Corrected Code

if ( ! is_main_site() ) {
wp_redirect( network_admin_url() );
exit;

Advertisements

Posted on June 7, 2011, in Web Dev and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: