WordPress.org

Make WordPress Core

Ticket #15611: 15611.logout.patch

File 15611.logout.patch, 701 bytes (added by ocean90, 7 years ago)
  • wp-includes/admin-bar.php

     
    8989                        $wp_admin_bar->add_menu( array( 'parent' => $id, 'title' => __( 'Dashboard' ), 'href' => get_dashboard_url( $user_id ), ) );
    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}
    9595