[wp-trac] Re: [WordPress Trac] #5276: Allow wp-config.php to be used without including wp-settings.php

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 1 07:58:17 GMT 2007


#5276: Allow wp-config.php to be used without including wp-settings.php
--------------------------------------+-------------------------------------
 Reporter:  mastermind                |        Owner:  anonymous
     Type:  enhancement               |       Status:  new      
 Priority:  normal                    |    Milestone:  2.5      
Component:  General                   |      Version:  2.4      
 Severity:  normal                    |   Resolution:           
 Keywords:  wp-config.php standalone  |  
--------------------------------------+-------------------------------------
Comment (by DD32):

 >  we can't change wp-config.php easily.

 Very true, However, Luckely at present its a require_once statement.

 I'll suggest another method, add {{{ require_once( dirname(__FILE__) .
 '/wp-settings.php'); }}} to wp-blog-header.php and remove it from the
 default sample wp-config.php.

 If users still have the line in their wp-config.php, then it'll still work
 as expected, However, it'll mean that users can make their wp-config.php a
 stand alone file if a plugin requires it. (Who knows, If it was mentioned
 in a announcement, come a few releases down the track, it might be safe to
 assume that its no longer included).

 It means it wont be useful in the immediate future, but overtime it'll
 become available.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5276#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list