[wpmu-trac] [WordPress MU Trac] #892: NOBLOGREDIRECT doesn't work
WordPress MU Trac
wpmu-trac at lists.automattic.com
Fri Feb 6 18:27:27 GMT 2009
#892: NOBLOGREDIRECT doesn't work
---------------------+------------------------------------------------------
Reporter: tomgf | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Keywords:
---------------------+------------------------------------------------------
I found that this line in wpmu-settings.php doesn't work with a directory
installation, even if NOBLOGREDIRECT is defined. It keeps giving the Fatal
Error page:
{{{
if( defined( "WP_INSTALLING" ) == false && constant( 'VHOST' ) == 'yes' &&
!is_object( $current_blog ) ) {
if( defined( 'NOBLOGREDIRECT' ) ) {
header( "Location: " . constant( 'NOBLOGREDIRECT' ) );
die();
} else {
if( constant( 'VHOST' ) == 'yes' ) {
header( "Location: http://" .
$current_site->domain . $current_site->path . "wp-signup.php?new=" .
str_replace( '.' . $current_site->domain, '', $domain ) );
} else {
header( "Location: http://" .
$current_site->domain . $current_site->path . "wp-signup.php?new=" .
str_replace( '/', '', $_SERVER[ 'REQUEST_URI' ] ) );
}
die();
}
}
}}}
I would suggest to replace
{{{
if( defined( "WP_INSTALLING" ) == false && constant( 'VHOST' ) == 'yes' &&
!is_object( $current_blog ) ) {
}}}
with
{{{
if( defined( "WP_INSTALLING" ) == false && !is_object( $current_blog ) ) {
}}}
but I'm sure that there must be a better option…
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/892>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list