Changeset 18333 for trunk/wp-includes/admin-bar.php
- Timestamp:
- 06/23/2011 08:05:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r18261 r18333 89 89 90 90 /* Add the "My Account" sub menus */ 91 $wp_admin_bar->add_menu( array( ' parent' => $id, 'title' => __( 'Edit My Profile' ), 'href' => get_edit_profile_url( $user_id ) ) );92 $wp_admin_bar->add_menu( array( ' parent' => $id, 'title' => __( 'Log Out' ), 'href' => wp_logout_url() ) );91 $wp_admin_bar->add_menu( array( 'id' => 'edit-profile', 'parent' => $id, 'title' => __( 'Edit My Profile' ), 'href' => get_edit_profile_url( $user_id ) ) ); 92 $wp_admin_bar->add_menu( array( 'id' => 'logout', 'parent' => $id, 'title' => __( 'Log Out' ), 'href' => wp_logout_url() ) ); 93 93 } 94 94 } … … 104 104 if ( 0 != $user_id ) { 105 105 if ( is_admin() ) 106 $wp_admin_bar->add_menu( array( ' title' => __( 'Visit Site' ), 'href' => home_url() ) );106 $wp_admin_bar->add_menu( array( 'id' => 'view-site', 'title' => __( 'Visit Site' ), 'href' => home_url() ) ); 107 107 elseif ( is_multisite() ) 108 $wp_admin_bar->add_menu( array( ' title' => __( 'Dashboard' ), 'href' => get_dashboard_url( $user_id ) ) );108 $wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => get_dashboard_url( $user_id ) ) ); 109 109 else 110 $wp_admin_bar->add_menu( array( ' title' => __( 'Dashboard' ), 'href' => admin_url() ) );110 $wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => admin_url() ) ); 111 111 } 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.