Make WordPress Core

Ticket #31507: ms-setting.php.patch

File ms-setting.php.patch, 594 bytes (added by iotr, 11 years ago)

Workaround to allow for 2 directories, not a general fix.

  • wp-includes/ms-settings.php

    diff --git wp-includes/ms-settings.php wp-includes/ms-settings.php
    index 7b35e76..3465320 100644
    if ( !isset( $current_site ) || !isset( $current_blog ) ) {  
    6262                        $current_blog = get_site_by_path( $domain, $path, 1 + count( explode( '/', trim( $current_site->path, '/' ) ) ) );
    6363                } else {
    6464                        // Otherwise, use the first path segment (as usual).
    65                         $current_blog = get_site_by_path( $domain, $path, 1 );
     65                        $current_blog = get_site_by_path( $domain, $path, 2 );
    6666                }
    6767
    6868        } elseif ( ! is_subdomain_install() ) {