[wp-trac] [WordPress Trac] #21077: Add support for custom ports in multisite site addresses

WordPress Trac noreply at wordpress.org
Mon Mar 7 21:39:22 UTC 2022


#21077: Add support for custom ports in multisite site addresses
----------------------------------------+-----------------------------
 Reporter:  djzone                      |       Owner:  (none)
     Type:  enhancement                 |      Status:  reopened
 Priority:  normal                      |   Milestone:  Future Release
Component:  Bootstrap/Load              |     Version:  3.4
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  multisite
----------------------------------------+-----------------------------

Comment (by Clorith):

 I'll add a note that multisite with custom ports appear to work out of the
 box, but requires you to edit the `wp_sites` database entry, and add the
 `:<port>` your self. This is because the sanitize on save function in
 multisite strips out `:`, leaving you with a `url<port>` instead of
 `url:<port>` db entry if using the interface.

 I'm not sure if there's any other issue besides this one, if there's any
 concerns beyond back-compat then this is the place to outline them, but
 from some preliminary testing it would appear that updating the filters to
 allow a format of `:[0-9]+` to pass through the sanitizer on save
 shouldn't break anything, and open things up for custom ports to the users
 hearts desire 🤔

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


More information about the wp-trac mailing list