Changeset 18898 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 10/06/2011 12:02:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r18888 r18898 174 174 175 175 function add_menus() { 176 // User related, aligned right. 177 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 ); 178 179 // Site related. 176 180 add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 ); 177 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );178 181 add_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu', 20 ); 179 add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 30 ); 180 add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 40 ); 181 add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 50 ); 182 add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 70 ); 182 add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 40 ); 183 184 // Content related. 185 add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 50 ); 186 add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 ); 187 add_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 ); 183 188 add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 80 ); 184 189 185 190 if ( ! is_admin() ) { 186 add_action( 'admin_bar_menu', 'wp_admin_bar_blog_front_menu', 25);191 add_action( 'admin_bar_menu', 'wp_admin_bar_blog_front_menu', 30 ); 187 192 add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 100 ); 188 193 } else { 189 add_action( 'admin_bar_menu', 'wp_admin_bar_blog_admin_menu', 25);194 add_action( 'admin_bar_menu', 'wp_admin_bar_blog_admin_menu', 30 ); 190 195 add_action( 'admin_bar_menu', 'wp_admin_bar_help_menu', 90 ); 191 196 }
Note: See TracChangeset
for help on using the changeset viewer.