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

WordPress Trac noreply at wordpress.org
Mon Sep 2 23:10:14 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:                  |     Focuses:  ui, administration
----------------------------+---------------------------------

Comment (by donmhico):

 This is interesting. IMHO we can do both of the approach @Otto42 mentioned
 above.

 > 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.

 At the top of my head, maybe we can try to use the constants `WP_HOME` and
 `WP_SITEURL` when doing the internal request. The request can be simple,
 maybe just see if both front-end and wp-admin both sends back 200 HTTP?

 I'll try to create an initial patch when time permits.

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


More information about the wp-trac mailing list