[wp-trac] [WordPress Trac] #11059: Discourage plugin authors calling wp-config.php directly
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 5 21:18:06 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 Viper007Bond):
Replying to [comment:9 josephscott]:
> Plugins and themes should never, ever, ever, ever load wp-config.php,
wp-load.php, wp-blog-header.php, etc. directly.
Erm, why not? I mean stuff like dynamic `.css` files and stuff can instead
be done by `http://site.com/?outputmycss`, but there's gotta be some type
of situation out there where a plugin needs to load WordPress from a stand
alone file and so `wp-load.php` has to be used.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11059#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list