[wp-trac] [WordPress Trac] #22090: Eliminate use of global $current_blog

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 3 21:44:02 UTC 2012


#22090: Eliminate use of global $current_blog
--------------------------+--------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Multisite     |     Version:  3.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by ryan):

 Replying to [comment:1 wonderboymusic]:
 > btdubs - http://plugins.svn.wordpress.org/wordpress-mu-domain-
 mapping/trunk/domain_mapping.php
 >
 > I use $current_blog in Sunrise, and I'm totally willing to stop, just
 passing info along.

 Using $current_blog in sunrise to bypass the $current_site and
 $current_blog setup in ms-settings.php is totally legit. I think it is the
 one proper use of $current_blog. Regardless, $current_blog will remain
 forever for back compat reasons, but it will probably never be switched by
 switch_to_blog().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22090#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list