[wp-trac] [WordPress Trac] #42073: Add limit 1 to get_blog_id_from_url

WordPress Trac noreply at wordpress.org
Tue Oct 3 12:26:46 UTC 2017


#42073: Add limit 1 to get_blog_id_from_url
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:
  spacedmonkey           |     Status:  new
     Type:  defect       |  Milestone:  Awaiting Review
  (bug)                  |    Version:  4.6
 Priority:  normal       |   Keywords:  needs-patch good-first-bug needs-
Component:  Networks     |  unit-tests
  and Sites              |
 Severity:  normal       |
  Focuses:  multisite    |
-------------------------+-------------------------------------------------
 `get_blog_id_from_url` uses to `get_sites` to looks if site exists. But it
 only uses the first result. The param limit should be added to get_sites,
 limiting the query.

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


More information about the wp-trac mailing list