[wp-trac] [WordPress Trac] #37053: Ensure `get_site_by_path()` returns a `WP_Site`

WordPress Trac noreply at wordpress.org
Wed Jun 8 16:29:28 UTC 2016


#37053: Ensure `get_site_by_path()` returns a `WP_Site`
--------------------------------+-----------------------------
 Reporter:  flixos90            |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  3.9
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 When using the filter `pre_get_sites_by_path`, the return value might
 possibly be a raw site object. Let's ensure it is turned into a `WP_Site`
 instance.

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


More information about the wp-trac mailing list