Make WordPress Core

Changeset 13930


Ignore:
Timestamp:
04/02/2010 03:27:08 AM (16 years ago)
Author:
wpmuguru
Message:

fix folder install detection in [13926], see #12736

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r13929 r13930  
    4444 */
    4545function allow_subdomain_install() {
    46     $path = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
    47     if( strlen( $path ) > 1 || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
     46    $domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
     47    if( false !== strpos( $domain, '/' ) || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
    4848        return false;
    4949
Note: See TracChangeset for help on using the changeset viewer.