[wp-trac] [WordPress Trac] #32503: Remove the "Update siteurl and home as well" checkbox option on multisite "Edit Site" screen.

WordPress Trac noreply at wordpress.org
Wed May 27 17:05:49 UTC 2015


#32503: Remove the "Update siteurl and home as well" checkbox option on multisite
"Edit Site" screen.
--------------------------------+----------------------------
 Reporter:  hugobaeta           |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  4.3
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  ui, multisite
--------------------------------+----------------------------

Comment (by earnjam):

 Patch [attachment:32503.1.diff] removes the checkbox and uses the
 following logic for updating `home` and `siteurl`:
 * If `http://``domain``path` (from wp_blogs) === `siteurl`, update
 `siteurl`.
 * If `http://``domain``path` (from wp_blogs) === `home`, update `home`.

 This uses `http` for the protocol for the values from `wp_blogs` because
 it's closest to the current functionality. In the current version, the
 checkbox is unchecked if the full URL from `home` or `siteurl` is
 different from `http://``domain``path`. So if either `home` or `siteurl`
 are changed to `https`, then it would be unchecked. Checking the box in
 that situation would force both `home` and `siteurl` to be updated to
 using `http`.

 [attachment:32503.1.diff] only updates `siteurl` and/or `home` in the
 event they are unchanged from their original value of `http`. If either of
 those values are changed, then it assumes they are being managed
 independently. If/when we begin tracking scheme in #14172, then we can add
 support for that here as well.

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


More information about the wp-trac mailing list