Ticket #21459: 21459.6.diff
| File 21459.6.diff, 382 bytes (added by ryan, 9 months ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/ms-blogs.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/ms-blogs.php (revision 21766) |
| 4 | +++ wp-includes/ms-blogs.php (working copy) |
| 5 | @@ -473,7 +473,7 @@ |
| 6 | |
| 7 | if ( did_action( 'init' ) ) { |
| 8 | $wp_roles->reinit(); |
| 9 | - $current_user = wp_get_current_user(); |
| 10 | + global $current_user; |
| 11 | $current_user->for_blog( $new_blog ); |
| 12 | } |
| 13 |
