I am working on a plugin that needs to overwrite the wp_login()
function in pluggable.php which seems like it would work fine, but it has already been overwritten in wpmu-functions.php along with some other supposedly pluggable functions like get_userdata()
and get_userdatabylogin()
. So now, instead of being able to override these functions I just get a PHP error message saying that I cannot redeclare a function.
Is there some reason these functions have been essentially declared twice (once in an overridable way in pluggable.php and once in a non overridable way wpmu-functions.php)? It seems to be that this was an oversight and will hopefully be fixed in the next version. It would be very nice to be able to use this plugin without having to hack at the WPMU core.
If you have any thoughts or references that you can point me too, it would be much appreciated. In the meantime, I simply removed wp_login()
from my wpmu-functions.php file. Thanks!