[wp-trac] [WordPress Trac] #21837: Site search for a domain by text fails in subdomain installs of multisite with www in primary domain

WordPress Trac noreply at wordpress.org
Thu Jul 2 18:53:40 UTC 2015


#21837: Site search for a domain by text fails in subdomain installs of multisite
with www in primary domain
--------------------------------+-----------------------------
 Reporter:  frisco              |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  multisite
--------------------------------+-----------------------------

Comment (by georgestephanis):

 In `get_blog_details()` if you’re searching by domain/path —
 https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/ms-
 blogs.php#L115 — if searching for a domain with a `www.` prefix, it looks
 like it will find the result either with or without.  But if searching for
 the domain without the `www.` prefix, it won’t catch an entry that has
 `www.` prefixed on the domain.

 It doesn’t look like the `www.` gets stripped in `update_blog_details()`
 anywhere either.

 Not sure if this is precisely the same issue, but I'll try to write a
 patch shortly, but in case I forget, documenting stuff here for future
 generations.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21837#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list