WordPress.org

Make WordPress Core

Ticket #21459: 21459.6.diff

File 21459.6.diff, 382 bytes (added by ryan, 6 years ago)
  • wp-includes/ms-blogs.php

     
    473473
    474474        if ( did_action( 'init' ) ) {
    475475                $wp_roles->reinit();
    476                 $current_user = wp_get_current_user();
     476                global $current_user;
    477477                $current_user->for_blog( $new_blog );
    478478        }
    479479