Use the api to build site urls. Props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-27 10:29:27 +00:00
parent bcc3bb24a3
commit 432f2a4456

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();
}