WordPress.org

Make WordPress Core

Ticket #14772: remove_redundant_check_of_logged_in_user.diff

File remove_redundant_check_of_logged_in_user.diff, 551 bytes (added by neoxx, 3 years ago)
  • admin-bar.php

     
    2727                $current_user = wp_get_current_user(); 
    2828 
    2929        /* Enqueue the JS files for the admin bar. */ 
    30         if ( is_user_logged_in() ) 
    31                 wp_enqueue_script( 'jquery', false, false, false, true ); 
     30        wp_enqueue_script( 'jquery', false, false, false, true ); 
    3231 
    3332        /* Load the admin bar class code ready for instantiation */ 
    3433        require( ABSPATH . WPINC . '/admin-bar/admin-bar-class.php' );