Changeset 47122 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r47108 r47122 123 123 */ 124 124 public function add_node( $args ) { 125 // Shim for old method signature: add_node( $parent_id, $menu_obj, $args ) 125 // Shim for old method signature: add_node( $parent_id, $menu_obj, $args ). 126 126 if ( func_num_args() >= 3 && is_string( $args ) ) { 127 127 $args = array_merge( array( 'parent' => $args ), func_get_arg( 2 ) ); … … 608 608 */ 609 609 public function add_menus() { 610 // User 610 // User-related, aligned right. 611 611 add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 ); 612 612 add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 ); … … 614 614 add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 ); 615 615 616 // Site 616 // Site-related. 617 617 add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 ); 618 618 add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 ); … … 622 622 add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 50 ); 623 623 624 // Content 624 // Content-related. 625 625 if ( ! is_network_admin() && ! is_user_admin() ) { 626 626 add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
Note: See TracChangeset
for help on using the changeset viewer.