Ticket #16455: 16455.diff

File 16455.diff, 961 bytes (added by MattyRob, 2 years ago)
  • wp-includes/load.php

     
    639639        if ( defined( 'MULTISITE' ) ) 
    640640                return MULTISITE; 
    641641 
    642         if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) 
     642        if ( is_subdomain_install() ) 
    643643                return true; 
    644644 
     645        if ( defined( 'SUNRISE' ) ) 
     646                return true; 
     647 
    645648        return false; 
    646649} 
    647650 
  • wp-includes/ms-load.php

     
    1616 * @return bool True if subdomain configuration is enabled, false otherwise. 
    1717 */ 
    1818function is_subdomain_install() { 
    19         if ( defined('SUBDOMAIN_INSTALL') ) 
     19        if ( defined('SUBDOMAIN_INSTALL') && SUBDOMAIN_INSTALL == true) 
    2020                return SUBDOMAIN_INSTALL; 
    2121 
    2222        if ( defined('VHOST') && VHOST == 'yes' )