[wp-trac] [WordPress Trac] #30417: In multisite, Siteurl and Home url break when updating path via site-info.php and leaving off a leading slash

WordPress Trac noreply at wordpress.org
Thu Nov 20 14:52:15 UTC 2014


#30417: In multisite, Siteurl and Home url break when updating path via site-
info.php and leaving off a leading slash
--------------------------------+-----------------------------
 Reporter:  earnjam             |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  3.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 When updating a site using site-info.php, if you enter a path without a
 leading slash and have the box checked for "Update `siteurl` and `home` as
 well.", then it will cause `home` and `siteurl` to update to
 `http://domain.compath` and break all subpages, scripts, styles, etc.

 This issue is similar to #18117 and #23865 in that it is due to the
 slashes not being checked, but this is a separate issue because it affects
 `siteurl` and `home`. Patch [attachment:18117.4.diff:ticket:18117] on
 #18117 appears to solve both #18117 and #23865, but does not address this
 particular issue. In `site-info.php`, `siteurl` and `home` get updated
 prior to running `update_blog_details()` so the fixes there to correct the
 slashes in the path don't solve this particular problem.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30417>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list