Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2019 07:00:08 PM (5 years ago)
Author:
imath
Message:

Use WP_Admin_Bar::add_node() to create new WP Admin Bar menu items

WP_Admin_Bar::add_menu() has been deprecated in WordPress 5.4. As this WP_Admin_Bar method is a wrapper of WP_Admin_Bar::add_node() since the introduction of the WP Admin Bar into WordPress 3.3 we can safely do this move.

Fixes #8158

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-component.php

    r12463 r12495  
    597597            // Add each admin menu.
    598598            foreach( $this->admin_menu as $admin_menu ) {
    599                 $wp_admin_bar->add_menu( $admin_menu );
     599                $wp_admin_bar->add_node( $admin_menu );
    600600            }
    601601        }
Note: See TracChangeset for help on using the changeset viewer.