[wp-trac] [WordPress Trac] #12993: 'get_current_blog()' and/or 'current_blog_id()' function?

WordPress Trac wp-trac at lists.automattic.com
Thu May 20 09:08:00 UTC 2010


#12993: 'get_current_blog()' and/or 'current_blog_id()' function?
-----------------------------+----------------------------------------------
 Reporter:  martythornley    |       Owner:                       
     Type:  feature request  |      Status:  new                  
 Priority:  normal           |   Milestone:  Future Release       
Component:  Multisite        |     Version:  3.0                  
 Severity:  normal           |    Keywords:  current blog, blog id
-----------------------------+----------------------------------------------

Comment(by martythornley):

 Replying to [comment:4 nacin]:

 > I don't see how `$GLOBALS['blog_id']` is not foolproof to determining
 the current blog ID.

 Not '$GLOBALS['blog_id']' but using the variable $blog_id.

 Think about what might happen if you tried to define $post within the
 loop. Same thing.

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


More information about the wp-trac mailing list