Multisite: Lowercase REQUEST_URI when matching paths.
props markjaquith, jeremyfelt. fixes #26403. git-svn-id: https://develop.svn.wordpress.org/trunk@27724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9215e9f5ab
commit
51847e0c73
@ -35,7 +35,7 @@ if ( !isset( $current_site ) || !isset( $current_blog ) ) {
|
||||
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
|
||||
}
|
||||
|
||||
$path = stripslashes( $_SERVER['REQUEST_URI'] );
|
||||
$path = strtolower( stripslashes( $_SERVER['REQUEST_URI'] ) );
|
||||
if ( is_admin() ) {
|
||||
$path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user