Saving general options when WP_SITEURL is defined can really screw things up
|Reported by:||filosofo||Owned by:||rob1n|
|Component:||Administration||Keywords:||home, siteurl, options, has-patch commit|
If you've defined WP_HOME or WP_SITEURL in your wp-config.php file, then the home and siteurl fields under Options > General become disabled.
At least in Firefox, that means that if you update any of the other options on that page, WP will set the home and siteurl options in the database to NULL, which makes WP think the site has not been setup yet, requiring a database edit to straighten things out.
My attached patch removes home or siteurl from the page_options field when they are defined by WP_HOME or WP_SITEURL.