[wp-trac] [WordPress Trac] #4003: Set 'home' and 'siteurl' options in wp-config.php

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 20 20:54:38 GMT 2007


#4003: Set 'home' and 'siteurl' options in wp-config.php
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:  anonymous                       
     Type:  enhancement     |      Status:  new                             
 Priority:  low             |   Milestone:  2.3                             
Component:  Administration  |     Version:                                  
 Severity:  normal          |    Keywords:  home siteurl wp-config has-patch
----------------------------+-----------------------------------------------
 I can't tell you how often I end up editing the database just to change
 the 'siteurl' and 'home' options.

 Recently on the hackers list [http://comox.textdrive.com/pipermail/wp-
 hackers/2007-March/011280.html Matt suggested] that it might have been a
 good thing to have put the those options in wp-config.php, and I agree.

 My patch allows you to set the constants "WP_HOME" and "WP_SITEURL" in wp-
 config.php, in which case they will override the db settings (and gray out
 those fields in the admin options page).

 As far as I can tell, this is something that would have to be done with a
 core change like this, because plugins are read too late after 'home' and
 'siteurl' have already been used in wp-settings.php.

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


More information about the wp-trac mailing list