Opened 10 years ago
Closed 10 years ago
#36994 closed defect (bug) (fixed)
Deprecate wp_get_sites()
| Reported by: | jeremyfelt | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
Description
Now that get_sites() has been introduced (See #35791) as part of WP_Site_Query, we can deprecate wp_get_sites(), which is not used within core at all.
This will entail:
- Add deprecation notice.
- Move function to
ms-deprecated.php - Either adjust all tests to use
get_sites()or add@ExpectedDeprecateddocs where appropriate. It may be good to leave all or some of thewp_get_sites()tests to help maintain backward compatibility.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
36994.diff deprecates
wp_get_sites(). I annotated all tests that usewp_get_sites()with deprecated docs, since I think we should all keep them use the oldwp_get_sites()- we already have tests forget_sites()in place, through theWP_Site_Querytests.