[wp-hackers] Is WP_INSTALLING constant here to stay?

Otto otto at ottodestruct.com
Tue Jan 22 16:25:34 UTC 2013

On Tue, Jan 22, 2013 at 9:00 AM, Dino Termini <dino at duechiacchiere.it> wrote:
> John,
> you make a very good point, indeed. Unfortunately Otto's advice doesn't
> apply to my plugin, I'm trying to do something completely different than
> what's described in that article. But it's always good to keep that in mind.
> Best,
> Dino.


My advice in that article applies across the board, to all plugins.

If you are a WordPress plugin, and you ever try to include the
wp-load.php file directly, then you have messed up somewhere, somehow.
There is no valid case for ever having to do this.

If you are a piece of code that is not running as a WordPress plugin,
or something that is entirely separate and simply accessing the WP
database, then there is a valid case to include wp-load.php.


More information about the wp-hackers mailing list