mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user