Changeset 12858 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 01/26/2010 10:46:09 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/ms-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r12855 r12858 79 79 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 ); 80 80 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;88 81 return false; 89 82 } … … 1820 1813 function maybe_redirect_404() { 1821 1814 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' ) != '' ) { 1823 1816 $destination = constant( 'NOBLOGREDIRECT' ); 1824 1817 if ( $destination == '%siteurl%' )
Note:
See TracChangeset
for help on using the changeset viewer.