Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

caiken on "get_currentuserinfo() does not work in internet explorer"

$
0
0

get_currentuserinfo() does not seem to work on my site when I am logged in through internet explorer. In firefox and chrome, when i try to echo my user id after calling the global and function, nothing will show.

'My code is as follows..
global $current_user;
get_currentuserinfo();
$userid = $current_user->id;
echo $userid;

It echo's 1 in firefox and chrome and 0 in internet explorer?'


Viewing all articles
Browse latest Browse all 8245

Trending Articles