[wp-trac] [WordPress Trac] #15936: IPv6 literal support in multisite broken

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 28 19:21:14 UTC 2011

#15936: IPv6 literal support in multisite broken
 Reporter:  jmdh          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  3.0.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
Changes (by mitchoyoshitaka):

 * cc: mitcho@… (added)


 Looks like this patch also helps with situations where the site is indeed
 running on a nonstandard port.

 I'm concerned, however, that `$_SERVER['HTTP_HOST']` is actually used in a
 number of places in the code, including situations where it is used in
 building a URL for printing and redirecting. Suppose we have WP on
 server:8080. We go into server:8080 and, with this patch, WP will no
 longer balk, but some functions such as auth_redirect will end up using
 the server:80 equivalent of the URL. Just munging `$_SERVER['HTTP_HOST']`
 doesn't seem to be the right approach here.

Ticket URL: <http://core.trac.wordpress.org/ticket/15936#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list