[wp-hackers] Pluggable function environment problem
mark.wordpress at txfx.net
Tue Mar 21 21:04:02 GMT 2006
On Mar 21, 2006, at 5:43 AM, Alistair Young wrote:
> Sometimes when the plugin is called, the define in wp-config
> is defined, sometimes it's not. The only way to get the plugin to
> work is
> to define it locally in the plugin file.
> wp-config doesn't work all the time. It's as if it isn't in the
> when the plugin is called.
If wp-config.php weren't included, you'd have no database access.
Without that, you wouldn't know what plugins are active. wp-
config.php must be included.
If you can give us some sample code and the expected/actual
behaviors, we can take a look at it.
More information about the wp-hackers