[wp-trac] [WordPress Trac] #12988: Modify wp-load.php to search for wp-config.php 2 directories higher

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 13 22:01:11 UTC 2010


#12988: Modify wp-load.php to search for wp-config.php 2 directories higher
--------------------------------+-------------------------------------------
 Reporter:  chipbennett         |        Owner:  ryan   
     Type:  enhancement         |       Status:  closed 
 Priority:  normal              |    Milestone:         
Component:  Security            |      Version:         
 Severity:  normal              |   Resolution:  wontfix
 Keywords:  wp-load, wp-config  |  
--------------------------------+-------------------------------------------

Comment(by scribu):

 > Regarding Scribu's argument: that suggestion is all well and good,
 except that, again, the vast majority of the userbase has WordPress
 installed in a subdirectory (which is a requirement of multisite, also)

 Quite the opposite: multisite requires that WP *not* be installed in a
 subdirectory.


 > Finally, regarding the matter of extra file-searches: why not define a
 variable (similar to ABSPATH) that holds the path to wp-config, and only
 run the file-search if the variable is undefined? In other words, it only
 ever happens once, and then after that, wp-config is just included.

 That's an interesting idea.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12988#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list