Opened 13 years ago
Closed 13 years ago
#25129 closed defect (bug) (fixed)
Properly deprecate $network_id argument in get_blog_count()
| Reported by: | jeremyfelt | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Multisite | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.