Make WordPress Core

Ticket #26403: 26403.diff

File 26403.diff, 610 bytes (added by markjaquith, 10 years ago)
  • src/wp-includes/ms-settings.php

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