WordPress.org

Make WordPress Core

Changeset 16934


Ignore:
Timestamp:
12/15/10 08:38:49 (5 years ago)
Author:
westi
Message:

Give the Logout menu item the correct parent so it appears when we have avatars as well as when we don't. Fixes #15611 props ocean90.

File:
1 edited

Legend:

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

    r16913 r16934  
    9090        else 
    9191            $wp_admin_bar->add_menu( array( 'parent' => $id, 'title' => __( 'Dashboard' ), 'href' => admin_url(), ) ); 
    92         $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Log Out' ), 'href' => wp_logout_url(), ) ); 
     92        $wp_admin_bar->add_menu( array( 'parent' => $id, 'title' => __( 'Log Out' ), 'href' => wp_logout_url(), ) ); 
    9393    } 
    9494} 
Note: See TracChangeset for help on using the changeset viewer.