WordPress.org

Make WordPress Core

Changeset 15037


Ignore:
Timestamp:
05/28/2010 04:40:55 PM (10 years ago)
Author:
wpmuguru
Message:

will the real host please step forward, fixes #13594

File:
1 edited

Legend:

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

    r15026 r15037  
    4444 */
    4545function allow_subdomain_install() {
    46     $domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
     46    $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'siteurl' ) );
    4747    if( false !== strpos( $domain, '/' ) || 'localhost' == $domain || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $domain ) )
    4848        return false;
Note: See TracChangeset for help on using the changeset viewer.