[wp-trac] [WordPress Trac] #4199: Saving general options when WP_SITEURL is defined can really screw things up

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 25 22:15:17 GMT 2007


#4199: Saving general options when WP_SITEURL is defined can really screw things
up
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:  anonymous           
     Type:  defect          |      Status:  new                 
 Priority:  high            |   Milestone:  2.2                 
Component:  Administration  |     Version:  2.2                 
 Severity:  critical        |    Keywords:  home,siteurl,options
----------------------------+-----------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4199>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list