[wp-hackers] Pluggable function environment problem

Matt Mullenweg m at mullenweg.com
Tue Mar 21 07:52:50 GMT 2006


Alistair Young wrote:
> I've just ported my LDAP plugin to WP 2.0.2 but I found a problem. The
> plugin includes a file which defines a constant. However, I've found that
> on some passes of the plugin file, which override wp_login, the constant
> isn't defined so it doesn't work.

What's the matter with defining the constant elsewhere, or even in 
wp-config?

> Is there any reason why require_once wouldn't work in a plugin file, some
> of the time but works others?

Nothing comes to mind immediately. If you pointed to the specific code 
maybe other folks could take a look at it.

-- 
Matt Mullenweg
  http://photomatt.net | http://wordpress.org
http://automattic.com | http://akismet.com


More information about the wp-hackers mailing list