Opened 18 years ago
Closed 18 years ago
#4199 closed defect (bug) (fixed)
Saving general options when WP_SITEURL is defined can really screw things up
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.2 | Priority: | high |
Severity: | critical | Version: | 2.2 |
Component: | Administration | Keywords: | home, siteurl, options, has-patch commit |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Looks good. +1.