[wp-hackers] Pluggable function environment problem
Alistair Young
alistair at smo.uhi.ac.uk
Sun Mar 19 22:55:30 GMT 2006
Hi there,
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.
The only solution is to define the constant in the plugin file.
Is there any reason why require_once wouldn't work in a plugin file, some
of the time but works others?
I worked all the time in WP 1.2 - 1.5
thanks,
Alistair
--
Alistair Young
Senior Software Engineer
UHI at Sabhal Mòr Ostaig
Isle of Skye
Scotland
More information about the wp-hackers
mailing list