Make WordPress Core

Changeset 17509


Ignore:
Timestamp:
03/08/2011 10:49:14 PM (14 years ago)
Author:
ryan
Message:

Don't show admin bar on login screen. Props nacin. fixes #16588 for 3.1

File:
1 edited

Legend:

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

    r17436 r17509  
    338338 */
    339339function is_admin_bar_showing() {
    340     global $show_admin_bar;
     340    global $show_admin_bar, $pagenow;
    341341
    342342    /* For all these types of request we never want an admin bar period */
     
    345345
    346346    if ( ! isset( $show_admin_bar ) ) {
    347         if ( ! is_user_logged_in() ) {
     347        if ( ! is_user_logged_in() || 'wp-login.php' == $pagenow ) {
    348348            $show_admin_bar = false;
    349349        } else {
Note: See TracChangeset for help on using the changeset viewer.