Warning and wrong blog prefix in get_most_active_blogs() and get_blog_list()
|Reported by:||ocean90||Owned by:|
- In get_blog_list() and get_most_active_blogs() you get a warning:
Notice: Undefined index: time in \wp-includes\ms-blogs.php on line 548
The reason is, $blogstime? will be never set and/or saved. The best would be here to use the Transient API, see the patches.
- A regression: The main site doesn't have a wp_1_posts table anymore, it has wp_posts. Because of that get_blog_list() returns 0 posts for the main site. We should use $wpdb->get_blog_prefix($id) to avoid it.
Change History (11)
Note: See TracTickets for help on using tickets.