Opened 11 years ago
Closed 11 years ago
#25129 closed defect (bug) (fixed)
Properly deprecate $network_id argument in get_blog_count()
Reported by: | jeremyfelt | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
Until 3.1, get_blog_count()
ran a query on the $wpdb->blogs
table based on a site id. This behavior was deprecated when get_site_option()
was implemented to return a cached version of the count.
Patch documents this and uses _deprecate_argument()
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Should it be
$site_id
rather than$network_id
? Looks like we use$site_id
when referring to a network ID throughout the core, withpopulate_network()
being the only exception.