• I finally got my LDAP plugin ported to WP2 from WP 1.5.2 but found a bug in the WP2 plugin environment.

    It seems that wp-config.php isn’t always used when plugin functions are called.

    Defining something in wp-config.php:

    define(‘LDAP_COOKIE_MARKER’, ‘LDAP’);

    doesn’t always propagate through to the plugin function. Sometimes it does, sometimes it doesn’t.

    e.g.

    echo “<br>”.LDAP_COOKIE_MARKER.”<br>”;

    from within a plugin function will sometimes display “LDAP” and other times display “LDAP_COOKIE_MARKER”.

    This wasn’t the case in 1.5.2 when defines in wp-config.php always propagated to the plugin functions.

    Defining LDAP_COOKIE_MARKER locally in the plugin PHP file solves the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP2 Plugin environment bug’ is closed to new replies.