Ticket #14190: current-blog-update-on-switch.diff
File current-blog-update-on-switch.diff, 491 bytes (added by , 12 years ago) |
---|
-
wp-includes/ms-blogs.php
470 470 $GLOBALS['table_prefix'] = $wpdb->prefix; 471 471 $prev_blog_id = $GLOBALS['blog_id']; 472 472 $GLOBALS['blog_id'] = $new_blog; 473 473 $GLOBALS['current_blog'] = get_blog_details( $new_blog ); 474 474 475 if ( did_action( 'init' ) ) { 475 476 $wp_roles->reinit(); 476 477 $current_user = wp_get_current_user();