Multisite: Lowercase REQUEST_URI when matching paths.
props markjaquith, jeremyfelt. fixes #26403. Built from https://develop.svn.wordpress.org/trunk@27724 git-svn-id: http://core.svn.wordpress.org/trunk@27561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a10a55cf87
commit
c095ad4500
|
@ -35,7 +35,7 @@ if ( !isset( $current_site ) || !isset( $current_blog ) ) {
|
||||||
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
|
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = stripslashes( $_SERVER['REQUEST_URI'] );
|
$path = strtolower( stripslashes( $_SERVER['REQUEST_URI'] ) );
|
||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
$path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path );
|
$path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue