Make WordPress Core


Ignore:
Timestamp:
01/26/2010 10:46:09 PM (17 years ago)
Author:
ryan
Message:

Deprecate is_main_blog() for is_main_site(). see #11644

File:
1 edited

Legend:

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

    r12855 r12858  
    7979                return $wpdb->get_results( $wpdb->prepare("SELECT u.ID, u.user_login, u.user_pass FROM $wpdb->users AS u, $wpdb->sitemeta AS sm WHERE sm.meta_key = 'admin_user_id' AND u.ID = sm.meta_value AND sm.site_id = %d", $site_id), ARRAY_A );
    8080
    81         return false;
    82 }
    83 
    84 function is_main_blog() {
    85         global $current_blog, $current_site;
    86         if ( $current_blog->domain == $current_site->domain && $current_blog->path == $current_site->path )
    87                 return true;
    8881        return false;
    8982}
    … …  
    18201813function maybe_redirect_404() {
    18211814        global $current_site;
    1822         if ( is_main_blog() && is_404() && defined( 'NOBLOGREDIRECT' ) && constant( 'NOBLOGREDIRECT' ) != '' ) {
     1815        if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && constant( 'NOBLOGREDIRECT' ) != '' ) {
    18231816                $destination = constant( 'NOBLOGREDIRECT' );
    18241817                if ( $destination == '%siteurl%' )
Note: See TracChangeset for help on using the changeset viewer.