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

WordPress Trac noreply at wordpress.org
Sat Mar 28 01:26:52 UTC 2020


#15936: IPv6 literal support in multisite broken
-------------------------------------------------+-------------------------
 Reporter:  jmdh                                 |       Owner:  (none)
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Networks and Sites                   |     Version:  3.0
 Severity:  major                                |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:  multisite
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by own3mall):

 This doesn't necessarily pertain to IPv6, but if you're wanting to run
 your WordPress instance on multiple ports, here is an easy solution that
 works for me:

 In wp-config.php near the top, simply add the following:


 {{{
 if($_SERVER['SERVER_PORT'] != '443' && $_SERVER['SERVER_PORT'] != '80' &&
 isset($_SERVER['SERVER_NAME']) && !empty($_SERVER['SERVER_NAME'])){
         $addr = 'https://' . $_SERVER['SERVER_NAME'] . ':'.
 $_SERVER['SERVER_PORT'];
         define('WP_SITEURL', $addr);
         define('WP_HOME', $addr);
 }
 }}}

 I'm posting the above code snippet in this ticket since the below ticket
 links to this one:  https://core.trac.wordpress.org/ticket/42993

 I think my solution is much better than this one:

 https://websanova.com/posts/wordpress/wordpress-on-multiple-ports

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


More information about the wp-trac mailing list