[wp-hackers] Plugins: Best practice for conditional loading of actions and file includes

Otto otto at ottodestruct.com
Mon Feb 8 16:48:35 UTC 2010


On Sat, Feb 6, 2010 at 10:03 AM, Ade Walker <photofantaisie at gmail.com> wrote:
> 2010/2/5 Otto <otto at ottodestruct.com>
>
>> Both, actually. No plugin should *ever* load wp-load directly. It's
>> never, ever, necessary; it's sloppy programming style; and it's bad
>> practice. However, it is often quick and easy to understand for some
>> authors, so it does happen a fair amount. Still, it shouldn't be
>> there, and any plugin you find with it should be fixed to not require
>> it any more.
>>
>> Feel free to pass anybody you find doing this my email, and I'll tell
>> them how to fix their plugin. :)
>>
>
> Would you care to share on this list? Or can I contact you off line?

Just email me directly if you want more info on this sort of thing. I
don't hide my email address. :)

Actually, this comes up so often that I might make a blog post about it.

-Otto
Sent from Memphis, TN, United States


More information about the wp-hackers mailing list