[wp-hackers] Alternative or reactivation for get_blog_info()

Malte Witt m.witt at ia-sh.de
Wed Jul 24 09:18:47 UTC 2013


I stumbled upon this a few days ago, too.

In my opinion get_blog_list() is perfectly fine. The Codex and the 
source is just saying: "For performance reasons this function is not 
recommended." That's true for installations with thousands of blogs. But 
I think most multisite installations out there in the real world have 3 
to 100 sites and they have a perfect valid usecase for get_blog_list().

If there is a no other reason why the function is deprecated (and I 
can't see any) I would say just reactivate it and place a big warning 
sign in the Codex, that this function shouldn't be used in super-large 
multisite installations.

In short: +1 for reactivation of get_blog_list().

Regards,
Malte

Am 24.07.2013 10:57, schrieb Frank Bueltge:
> Hello at all,
>
> since WP 3.0 ist Multisite more and more popular.
> Very often on development is it important, that you get all blogs on
> network. Before WP 3.0 give it the function get_blog_list() for this job.
> http://codex.wordpress.org/WPMU_Functions/get_blog_list
>
> Since 3.0 is this function deprecated. But if you will search via www for a
> alternative solution, you find many code snippets, but all with a sql
> select. I think it is important, that we have a core function for this
> topic, maybe the function get_blog_list().
> What do you think, it is a enhancement, change for the trac that we
> reactivate the function in core?
> I have search on trac for topics to this functions, but only one result
> with other content.
>
> Thanks a lot for your time.
> Frank
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



More information about the wp-hackers mailing list