Grow your CSS skills. Land your dream job.

WP 3.3 Admin bar viewable to all site visitors when Admin logged in

  • # December 28, 2011 at 12:24 pm

    Hi all,

    One of my clients recently upgraded his site to WP 3.3 and since that time whenever an administrator is logged into the website, ALL visitors to the site see the Admin bar.

    We have tried creating a new administrator account, but the error keeps returning. The real issue is that the admin bar is functional. So if my client is logged in to the website I can simultaneously go to the website on my computer and see the Admin bar and make changes to the website.

    Is anyone else having this serious error? Any suggestions on how to fix it?

    # December 28, 2011 at 12:37 pm

    Hmmmm. I haven’t heard of this happening to anyone else yet. Must be a problem with the theme, I think. I’d check your functions.php file for anything to do with the admin bar.

    # December 28, 2011 at 12:54 pm

    I thought about that as well. I used the Starkers HTML5 as the starting point for the theme. I don’t see anything that would cause the problem.

    < ?php
    /**
    * @package WordPress
    * @subpackage Starkers HTML5
    */

    automatic_feed_links();

    if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
    'before_widget' => '
  • ',
    'after_widget' => '
  • ',
    'before_title' => '

    ',
    'after_title' => '

    ',
    ));
    }

    /**
    * Conditional Page/Post Navigation Links
    * http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/
    * If more than one page exists, return TRUE.
    */
    function show_posts_nav() {
    global $wp_query;
    return ($wp_query->max_num_pages > 1);
    }

    // This is the new comment markup - edit as you feel necessary
    function html5_comment($comment, $args, $depth) {
    $GLOBALS = $comment; ?>
    id="comment-< ?php comment_ID() ?>">


    < ?php echo get_avatar($comment,$size='48',$default='' ); ?>

    < ?php printf(__('%s says:'), get_comment_author_link()) ?>



    < ?php if ($comment->comment_approved == '0') : ?>
    < ?php _e('Your comment is awaiting moderation.') ?>
    < ?php endif; ?>



    < ?php comment_text() ?>

    < ?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args))) ?>

    < ?php
    }

    // Changes the trailing into a trailing

    function close_comment() {?>

    < ?php
    }

    ?>
    # December 28, 2011 at 1:21 pm

    No, that all looks good… Hmmmm.

    Were any edits made to the WP core? I guess for now I’d turn off the admin bar altogether so your client can still access the site.

    # December 29, 2011 at 11:43 pm

    Yes, same thing happening to me.

    # December 29, 2011 at 11:49 pm

    This article should help guys. http://wp.tutsplus.com/tutorials/how-to-disable-the-admin-bar-in-wordpress-3-3/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".