Make WordPress Core

Ticket #26403: 26403.2.diff

File 26403.2.diff, 556 bytes (added by markjaquith, 10 years ago)

move the strtolower() before the last preg_replace()

  • src/wp-includes/ms-settings.php

    if ( !isset( $current_site ) || !isset( $current_blog ) ) { 
    4040
    4141        $path = preg_replace( '|([a-z0-9-]+.php.*)|', '', $_SERVER['REQUEST_URI'] );
    4242        $path = str_replace ( '/wp-admin/', '/', $path );
     43        $path = strtolower( $path );
    4344        $path = preg_replace( '|(/[a-z0-9-]+?/).*|', '$1', $path );
    4445
    4546        $current_site = wpmu_current_site();