Make WordPress Core

Ticket #14190: current-blog-update-on-switch.diff

File current-blog-update-on-switch.diff, 491 bytes (added by wonderboymusic, 12 years ago)
  • wp-includes/ms-blogs.php

     
    470470        $GLOBALS['table_prefix'] = $wpdb->prefix;
    471471        $prev_blog_id = $GLOBALS['blog_id'];
    472472        $GLOBALS['blog_id'] = $new_blog;
    473 
     473        $GLOBALS['current_blog'] = get_blog_details( $new_blog );
     474       
    474475        if ( did_action( 'init' ) ) {
    475476                $wp_roles->reinit();
    476477                $current_user = wp_get_current_user();