Opened 12 years ago
Closed 12 years ago
#25129 closed defect (bug) (fixed)
Properly deprecate $network_id argument in get_blog_count()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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_idrather than$network_id? Looks like we use$site_idwhen referring to a network ID throughout the core, withpopulate_network()being the only exception.