[wp-trac] [WordPress Trac] #47954: Create a sanity check for siteurl and home changes

WordPress Trac noreply at wordpress.org
Fri Sep 6 06:21:37 UTC 2019


#47954: Create a sanity check for siteurl and home changes
----------------------------+---------------------------------
 Reporter:  Otto42          |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui, administration
----------------------------+---------------------------------

Comment (by donmhico):

 > Concept: Change the field, make an internal request, see if it fails, if
 so change them back, then warn the user with a "hey, this change seems
 like it's gonna break things real bad, are you really sure?" Or
 equivalent.

 What would be a sane way to check? Looking at
 https://wordpress.org/support/article/moving-wordpress/, it mentions on
 some steps that 404 is expected since the instructions prioritize the
 `Change of urls` before moving the files / database. In this case, it's
 hard to think of a sanity check.

 Of course, it would be different if we are just trying is to prevent
 'accidental' URL change in which case, we can just check if `home` or
 `siteurl` is about to be updated and just ask for a "Are you sure?"
 confirmation to the admin.

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


More information about the wp-trac mailing list