WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The admin bar is appearing for non logged-in users on one of my sites, but only for two specific pages (/work and /contact, for what it's worth). Has anyone heard of this happening before? It appears as though one of the site's users is logged in (their username is displayed), but clicking any links on the admin bar lead to the login page. If I click Log Out under that users name in the admin bar, I get a prompt to ensure I want to logout, then a redirect to /wp-login.php. However, upon returning to /work or /contact, the admin bar still appears.

share|improve this question
Page got cached by something? – Rarst Mar 29 '11 at 21:59
Huh. Emptying all caches in W3 Total Cache fixed it. Add as an answer and I'll accept. Seems like an issue with that plugin that should be fixed. – tnorthcutt Mar 29 '11 at 22:03
Change line 213 of admin-bar.php in the wp-includes folder from return to die. – user24289 Dec 1 '12 at 0:16
up vote 2 down vote accepted

Since I think that mis-identifying all users not-logged in is extremely unlikely, my line of thought is that wrong non-public version of page was cached for some reason.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.