[wp-trac] [WordPress Trac] #11059: Discourage plugin authors calling wp-config.php directly

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 6 15:49:14 UTC 2009

#11059: Discourage plugin authors calling wp-config.php directly
 Reporter:  strider72    |        Owner:         
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:         
Component:  General      |      Version:  2.9    
 Severity:  normal       |   Resolution:  wontfix
 Keywords:               |  

Comment(by strider72):

 "While it is recommended that people not load wp-config.php directly, we
 should not be in the business of forcing this, it should remain a

 My biggest disagreement with that statement is that loading wp-config.php
 directly, breaks legitimate installs of WordPress as it exists right now
 -- not in some hypothetical "maybe" situation.  (Specifically talking
 about installs where wp-config.php is moved up one directory, in which
 cases it's either not found OR sets an incorrect ABSPATH.)

 Which is why the original patch pushed them toward wp-load.  Not
 recommended, but better, because direct wp-config loading is *broken*
 wheras wp-load is... problematic but not broken.

 Ah, well.  Off to write a "Hey dummy don't load wp-config.php" article...
 ;-p  Any recommendations for a "further information" link URL?

Ticket URL: <http://core.trac.wordpress.org/ticket/11059#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list