From 3507043ba161f001662fcad7cbbca9ac5aa4568e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 22 Oct 2010 18:42:26 +0000 Subject: [PATCH] Remove redundant logged in check. Props neoxx. see #14772 git-svn-id: https://develop.svn.wordpress.org/trunk@15914 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 6e9962274d..2bab86b085 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -27,8 +27,7 @@ function wp_admin_bar_init() { $current_user = wp_get_current_user(); /* Enqueue the JS files for the admin bar. */ - if ( is_user_logged_in() ) - wp_enqueue_script( 'jquery', false, false, false, true ); + wp_enqueue_script( 'jquery', false, false, false, true ); /* Load the admin bar class code ready for instantiation */ require( ABSPATH . WPINC . '/admin-bar/admin-bar-class.php' );