Make WordPress Core


Ignore:
Timestamp:
02/19/2010 01:03:58 AM (15 years ago)
Author:
nacin
Message:

Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r13125 r13209  
    12751275function maybe_redirect_404() {
    12761276    global $current_site;
    1277     if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && constant( 'NOBLOGREDIRECT' ) != '' ) {
    1278         $destination = constant( 'NOBLOGREDIRECT' );
     1277    if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) {
    12791278        if ( $destination == '%siteurl%' )
    12801279            $destination = $current_site->domain . $current_site->path;
Note: See TracChangeset for help on using the changeset viewer.