Changeset 12858
- Timestamp:
- 01/26/2010 10:46:09 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r12842 r12858 726 726 if ( !isset( $data[ 'post_name' ] ) || $data[ 'post_name' ] == '' ) 727 727 return $data; 728 if ( !is_main_ blog() )728 if ( !is_main_site() ) 729 729 return $data; 730 730 -
trunk/wp-includes/ms-deprecated.php
r12848 r12858 118 118 } 119 119 120 /** 121 * @deprecated 3.0 122 */ 123 function is_main_blog() { 124 _deprecated_function( __FUNCTION__, '3.0', 'is_main_site' ); 125 return is_main_site(); 126 } 127 120 128 ?> -
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%' ) -
trunk/wp-includes/ms-settings.php
r12787 r12858 66 66 if ( defined( 'BLOGID_CURRENT_SITE' ) ) 67 67 $current_site->blog_id = BLOGID_CURRENT_SITE; 68 if ( DOMAIN_CURRENT_SITE == $domain ) 68 if ( DOMAIN_CURRENT_SITE == $domain ) 69 69 $current_site->cookie_domain = $cookie_domain; 70 70 elseif ( substr( $current_site->domain, 0, 4 ) == 'www.' ) … … 72 72 else 73 73 $current_site->cookie_domain = $current_site->domain; 74 74 75 75 return $current_site; 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.