[wp-trac] [WordPress Trac] #11059: Discourage plugin authors calling wp-config.php directly
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 4 21:01:19 UTC 2009
#11059: Discourage plugin authors calling wp-config.php directly
-------------------------+--------------------------------------------------
Reporter: strider72 | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment(by westi):
I'm not sure I see the benefit of this as a way of educating users.
* It only works on new installs - old installs already have a wp-
config.php file
* It requires that WP_DEBUG is enabled (and it should if it wants to
error out) - but the setting of WP_DEBUG implies the plugin/theme author
has half a clue as to what they are doing.
I think we do much better to put the message out explicitly that
plugins/themes should never ever ever ever need to pull in wp-config.php /
wp-load.php / wp-blog-header.php directly.
Pulling in those files is all about integrating WordPress into a 3rd part
system.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11059#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list