$current_user empty in Chrome
-
For some reason, $current_user is always an empty object for me in Chrome, but in Safari or Firefox it’s working great.
In my
wp-blog-header.php
file, I’ve got the following:global $current_user; get_currentuserinfo();
Then, in a file called
success.php
(which is being called by PayPal on a successful purchase), I’ve got:global $current_user; require('../../../wp-blog-header.php');
I
print_r($current_user)
, and on Safari and Firefox it works great (haven’t tested IE yet). But, Chrome just renders an empty WP_User_Object, even though I’m logged in.Anyone have any ideas?
- The topic ‘$current_user empty in Chrome’ is closed to new replies.