Ticket #19425: 19425.2.diff
File 19425.2.diff, 1.3 KB (added by , 13 years ago) |
---|
-
wp-includes/admin-bar.php
125 125 } 126 126 127 127 /** 128 * Rebinds the "My Account" item to allow items to be placed before it. 129 * 130 * @since 3.3.0 131 */ 132 function wp_admin_bar_my_account_item( $wp_admin_bar ) { 133 $node = $wp_admin_bar->get_node( 'my-account' ); 134 $wp_admin_bar->remove_node( 'my-account' ); 135 $wp_admin_bar->add_node( $node ); 136 } 137 138 /** 128 139 * Add the "My Account" menu and all submenus. 129 140 * 130 141 * @since 3.1.0 -
wp-includes/class-wp-admin-bar.php
352 352 353 353 public function add_menus() { 354 354 // User related, aligned right. 355 add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 10 ); 356 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 20 ); 355 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 ); 356 add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 ); 357 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 ); 357 358 358 359 // Site related. 359 360 add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 );