[wp-trac] [WordPress Trac] #6933: Allow wp-config.php to exist one level up from WordPress root directory

WordPress Trac wp-trac at lists.automattic.com
Thu May 8 08:03:31 GMT 2008


#6933: Allow wp-config.php to exist one level up from WordPress root directory
-------------------------+--------------------------------------------------
 Reporter:  sambauers    |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.6      
Component:  General      |     Version:  2.5.1    
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 For a while in bbPress we have allowed users to keep their bb-config.php
 file one level below the root directory. It's helpful for a few reasons.

  1. It's a little more secure if wp-config.php happens to also be outside
 the webroot
  2. It allows us to add WordPress as an external repository in other
 projects with a config file that sits outside that external repository (we
 do this with bbPress a lot)
  3. Removes direct calls to wp-config.php, which allows more control of
 it's loading through wp-load.php in the future
  4. Removes some duplicate code in some places for detecting wp-config.php

 WordPress requires a few more changes to get it to do this as there are a
 few hard-coded include paths to wp-config.php

 This patch adds a new file called wp-load.php in the root which allows the
 places that statically include wp-config.php to include wp-load.php
 instead

 I'm pretty sure this patch won't break backward compatibility for people
 who directly include wp-blog-header.php elsewhere either. wp-blog-
 header.php calls wp-load.php in this patch.

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


More information about the wp-trac mailing list