UserID from wp_get_current_user returns 0 in new release
-
Hi,
It seems that wp_get_current_user() returns a 0 instead of NULL by default if no user is logged in. I can’t seem to find an answer in the release notes, but it seems this changed after the release of 4.2.1.
Is this part of the new security fix?
Can somebody shine a light on this?
Thank you,
Maarten Hemmes
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘UserID from wp_get_current_user returns 0 in new release’ is closed to new replies.