﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
22090	Eliminate use of global $current_blog	ryan	ryan	"$current_blog shouldn't be used outside of ms-settings.php and other core MS bootstrap files.  Use of it can lead to bugs such as this one in is_main_site():

http://core.trac.wordpress.org/ticket/21459#comment:44
http://wordpress.org/support/topic/switch_to_blog-does-not-properly-set-wp_upload_dir-vars

Instead, get_blog_details( get_current_blog_id() ) should be used. get_blog_details() can default to the current blog id when not passed an argument to shorten this to get_blog_details()."	defect (bug)	closed	normal	3.5	Multisite	3.4.2	normal	fixed		wdfee
