[wpmu-trac] [WordPress MU Trac] #1190: Add blog ID to get_bloginfo() results

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Jan 13 19:14:49 UTC 2010


#1190: Add blog ID to get_bloginfo() results
-------------------------+--------------------------------------------------
 Reporter:  ancawonka    |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  component1   |     Version:          
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 I need to get the current blog's ID so that I can compare it with a list
 of blog ID's I get from an option.

 Currently, the way I do this is:

 1. Get the current blog name using get_bloginfo().

 2. Query the wp_blogs table to get the Blog ID given the blog name.

 It would be helpful for the blog ID to be included in get_bloginfo() so I
 don't have to make this extra query.

 Thank you!

 Anca

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1190>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list