[wp-trac] [WordPress Trac] #27927: Multisite www gets treated as a subdomain

WordPress Trac noreply at wordpress.org
Sun Apr 20 20:02:54 UTC 2014


#27927: Multisite www gets treated as a subdomain
--------------------------------+------------------------
 Reporter:  Ipstenu             |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  3.9.1
Component:  Networks and Sites  |     Version:  3.9
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------

Comment (by jeremyfelt):

 Until 3.9, we would search for both www and non-www domains, find the
 site, and then let a redirect happen via `redirect_canonical()`. In 3.9,
 we use non-www and www when doing the network search, but not when doing
 the site search. A site is not found and `redirect_canonical()` does not
 happen.

 I attached
 [https://core.trac.wordpress.org/attachment/ticket/27927/27927.diff
 27927.diff], but as I'm writing this up I'm realizing it does not work if
 the multisite install was done for the full www domain. Of course,
 creating a subdomain install on a `www.domain` does seem seem out of the
 ordinary...

 We'll likely need to search for both www and non-www variants in
 `get_site_by_path()` to match previous behavior.

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


More information about the wp-trac mailing list