Ticket #17376: 17376.4.diff
File 17376.4.diff, 855 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/ms-settings.php
119 119 $current_blog->blog_id = $blog_id = 1; 120 120 } 121 121 122 if ( is_admin() && 0 !== strcasecmp( $current_blog->path, $path ) ) { 123 unset( $current_blog ); 124 } 125 122 126 // No site has been found, bail. 123 127 if ( empty( $current_blog ) ) { 124 128 // We're going to redirect to the network URL, with some possible modifications. … … 149 153 if ( '%siteurl%' !== NOBLOGREDIRECT ) { 150 154 $destination = NOBLOGREDIRECT; 151 155 } 156 } elseif ( is_admin() ) { 157 $destination .= 'wp-admin/'; 152 158 } elseif ( 0 === strcasecmp( $current_site->domain, $domain ) ) { 153 159 /* 154 160 * If the domain we were searching for matches the network's domain,