From 2f3f5b351fd86bf2e1a12d445b0de57392c0a0fa Mon Sep 17 00:00:00 2001
From: wpmuguru
before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like
but any links will not have the "www" prefix. Server Address | @@ -263,43 +266,15 @@ function step2_config() { function get_clean_basedomain() { global $wpdb; $domain = preg_replace( '|https?://|', '', get_option( 'siteurl') ); - //@todo: address no www in multisite code - if( substr( $domain, 0, 4 ) == 'www.' ) - $domain = substr( $domain, 4 ); if( strpos( $domain, '/' ) ) $domain = substr( $domain, 0, strpos( $domain, '/' ) ); return $domain; } -function nowww() { - $nowww = str_replace( 'www.', '', $_POST[ 'basedomain' ] ); - ?> -
---|