[wp-trac] [WordPress Trac] #17090: Multisite 3.1.1 Upgrade Redirect Loop Network Admin & Plugins

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 8 20:42:29 UTC 2011


#17090: Multisite 3.1.1 Upgrade Redirect Loop Network Admin & Plugins
-----------------------------+-----------------------------
 Reporter:  theshadowfan     |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  3.1
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 I have Wordpress MultiSite and was upgrading from 3.1 to 3.1.1. 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;

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17090>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list