summaryrefslogtreecommitdiffstats
path: root/wpmu-settings.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-01-02 17:48:17 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-01-02 17:48:17 +0000
commit9f984852bd0f5ad05245ee3e2e2c6ed12ed010bf (patch)
treefc7c46af28b396df67dadee35ed87a49cdcc9dff /wpmu-settings.php
parent9c11318dcac459c2840d3e322966f275467d5ddb (diff)
downloadwordpress-mu-9f984852bd0f5ad05245ee3e2e2c6ed12ed010bf.tar.gz
wordpress-mu-9f984852bd0f5ad05245ee3e2e2c6ed12ed010bf.tar.xz
wordpress-mu-9f984852bd0f5ad05245ee3e2e2c6ed12ed010bf.zip
Added "NOBLOGREDIRECT" constant to redirect if a blog is unknown, fixes #522
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1178 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wpmu-settings.php')
-rw-r--r--wpmu-settings.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpmu-settings.php b/wpmu-settings.php
index bebcf00..a18e556 100644
--- a/wpmu-settings.php
+++ b/wpmu-settings.php
@@ -103,7 +103,11 @@ if( constant( 'VHOST' ) == 'yes' ) {
if( defined( "WP_INSTALLING" ) == false ) {
if( $current_site && $current_blog == null ) {
- header( "Location: http://{$current_site->domain}{$current_site->path}wp-signup.php?new=" . urlencode( $blogname ) );
+ if( defined( 'NOBLOGREDIRECT' ) && constant( 'NOBLOGREDIRECT' ) != '' ) {
+ header( "Location: " . constant( 'NOBLOGREDIRECT' ) . "?new=" . urlencode( $blogname ) );
+ } else {
+ header( "Location: http://{$current_site->domain}{$current_site->path}wp-signup.php?new=" . urlencode( $blogname ) );
+ }
die();
}
if( $current_blog == false || $current_site == false )