WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2010 07:49:25 PM (10 years ago)
Author:
nacin
Message:

Don't show the admin bar in the plugin/theme installers. Inserts condition directly into iframe_header(). Allows show_admin_bar() to be called after init by unsetting wp_admin_bar, thus preventing render once those hooks are fired. see #14772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r15916 r15938  
    6363    if ( !is_object( $wp_admin_bar ) )
    6464        return false;
    65        
     65
    6666    $wp_admin_bar->load_user_locale_translations();
    6767
     
    227227 */
    228228function wp_admin_bar_css() {
    229     global $pagenow, $wp_locale;
     229    global $pagenow, $wp_locale, $wp_admin_bar;
     230
     231    if ( !is_object( $wp_admin_bar ) )
     232        return false;
    230233
    231234    if ( !is_user_logged_in() )
Note: See TracChangeset for help on using the changeset viewer.