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

24/7 24-7 at gmx.net
Tue Feb 9 14:41:03 UTC 2010


Hi Otto, I hope you do share your blog-post with a link over here. I would
be interessted to

-k.

-----Ursprüngliche Nachricht-----
Von: Otto [mailto:otto at ottodestruct.com] 
Gesendet: Montag, 08. Februar 2010 17:49
An: wp-hackers at lists.automattic.com
Betreff: Re: [wp-hackers] Plugins: Best practice for conditional loading of
actions and file includes

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