Remove redundant logged in check. Props neoxx. see #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
414b000848
commit
3507043ba1
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue