[wp-trac] [WordPress Trac] #12811: DEFINE for location of wp-config.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 2 15:28:39 UTC 2010
#12811: DEFINE for location of wp-config.php
-----------------------------+----------------------------------------------
Reporter: erwinkerk | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.0
Severity: normal | Resolution: worksforme
Keywords: config |
-----------------------------+----------------------------------------------
Comment(by nacin):
I saw a brief conversation in the #wordpress-dev logs, so I wanted to
address that.
For the extremely rare use case where a plugin needs to know where wp-
config is, say a plugin that edits the file directly, I'd rather see them
make the check themselves. (It's either ABSPATH or one level up.)
Providing a constant would only encourage plugins to incorrectly load wp-
config.php instead of using the proper alternatives, such as admin-
ajax.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12811#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list