Changeset 15037
- Timestamp:
- 05/28/2010 04:40:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network.php
r15026 r15037 44 44 */ 45 45 function allow_subdomain_install() { 46 $domain = preg_replace( '|https?:// [^/]|', '', get_option( 'siteurl' ) );46 $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'siteurl' ) ); 47 47 if( false !== strpos( $domain, '/' ) || 'localhost' == $domain || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $domain ) ) 48 48 return false;
Note: See TracChangeset
for help on using the changeset viewer.