Opened 8 years ago
Closed 8 years ago
#36994 closed defect (bug) (fixed)
Deprecate wp_get_sites()
Reported by: | jeremyfelt | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | multisite | Cc: |
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@ExpectedDeprecated
docs 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.
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_Query
tests.