Use the api to build site urls. Props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@16007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-10-27 10:29:27 +00:00
parent 3c4cd0b408
commit f1299e04a4

View File

@ -7,7 +7,7 @@ require( dirname(__FILE__) . '/wp-load.php' );
require( './wp-blog-header.php' );
if ( !is_multisite() ) {
wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
wp_redirect( site_url( '/wp-login.php?action=register' ) );
die();
}