Make WordPress Core


Ignore:
Timestamp:
10/29/2010 03:45:29 PM (14 years ago)
Author:
westi
Message:

Only show it as the Global Dashboard if multisite. See #14772

File:
1 edited

Legend:

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

    r16079 r16080  
    8888    /* Add the "My Account" sub menus */
    8989    $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Edit My Profile' ), 'href' => admin_url('profile.php'), ) );
    90     $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Global Dashboard' ), 'href' => admin_url(), ) );
     90    if ( is_multisite() )
     91        $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Global Dashboard' ), 'href' => admin_url(), ) );
     92    else
     93        $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Dashboard' ), 'href' => admin_url(), ) );
    9194    $wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Log Out' ), 'href' => wp_logout_url(), ) );
    9295}
Note: See TracChangeset for help on using the changeset viewer.