Changeset 1319

Show
Ignore:
Timestamp:
06/04/08 15:46:25 (4 months ago)
Author:
donncha
Message:

No need forthis debugging code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wpmu-functions.php

    r1318 r1319  
    323323 
    324324function switch_to_blog( $new_blog ) { 
    325         global $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache, $switched_to
     325        global $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache
    326326 
    327327        if ( empty($new_blog) ) 
     
    340340        $prev_blog_id = $blog_id; 
    341341        $blog_id = $new_blog; 
    342         $switched_to = $blog_id; 
    343342 
    344343        if( is_object( $wp_roles ) ) { 
     
    356355 
    357356function restore_current_blog() { 
    358         global $table_prefix, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache, $switched_to
     357        global $table_prefix, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache
    359358 
    360359        if ( !$switched ) 
     
    369368        $blog_id = $blog; 
    370369        $table_prefix = $wpdb->prefix; 
    371         $switched_to = $blog_id; 
    372370 
    373371        if( is_object( $wp_roles ) ) { 
     
    11421140 
    11431141function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) { 
    1144         global $wp_object_cache; 
    11451142        $domain = sanitize_user( $domain ); 
    11461143        $title = strip_tags( $title ); 
     
    11561153        if ( !defined("WP_INSTALLING") ) 
    11571154                define( "WP_INSTALLING", true ); 
    1158         if( is_object( $wp_object_cache ) ) $wp_object_cache->cache_enabled = false; 
    11591155 
    11601156        if ( ! $blog_id = insert_blog($domain, $path, $site_id) )