@papadop, you are correct in that pluggable.php should not be included/required from within a plugin.
In the case of this plugin, it’s being loaded if the function wp_get_current_user
isn’t defined, but I’m not seeing anywhere in the plugin that this function is called. The only function I can find in this plugin that is defined in pluggable.php is wp_verify_nonce
on line 127. However, that function call is enclosed within the function cattopage_wud_settings_page
which is called from the add_menu_page
function at line 98 which is called from the function cattopage_wud_create_menu
which is attached to the admin_menu
hook at line 34. So, I’m not sure why @danny WUD would have included since by the time admin_menu
hook is called, all plugins are already loaded.
HOWEVER, the concept behind pluggable.php is being phased out in favor of filters/actions. wpDirAuth has been around since v2.2.2 of WordPress, and it needs to updated to utilize the filter for wp_authenticate, which would prevent this type of conflict. It’ on my roadmap, just gotta find the time. ??