[wp-trac] [WordPress Trac] #36994: Deprecate wp_get_sites()

WordPress Trac noreply at wordpress.org
Wed Jun 1 23:42:11 UTC 2016


#36994: Deprecate wp_get_sites()
--------------------------------+-------------------------
 Reporter:  jeremyfelt          |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  4.6
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-------------------------
 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 the `wp_get_sites()` tests to help maintain backward
 compatibility.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36994>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list