[wp-hackers] Updating a User Record via PHP?
Mike Schinkel
mikeschinkel at newclarity.net
Mon Feb 2 19:10:14 GMT 2009
"Matt Martz" <mdmartz at sivel.net> wrote:
> It shouldn't be adding a new user as long as you
> pass a proper $userdata array to it.
Aye, there's the rub, eh? Getting a proper $userdata seems to be the issue.
Did you guys know that core sometimes expects $userdata to be an array and sometimes it expects it to be an object? Hard to write/debug code that interacts with it given that inconsistency.
-Mike Schinkel
http://mikeschinkel.com/
More information about the wp-hackers
mailing list