Skip to:
Content

BuddyPress.org

Ticket #7197: 7197.01.patch

File 7197.01.patch, 831 bytes (added by r-a-y, 5 years ago)
  • src/bp-core/bp-core-buddybar.php

     
    152152        );
    153153
    154154        // Add the item to the nav.
    155         $retval = buddypress()->{$component}->nav->add_nav( $nav_item );
     155        buddypress()->{$component}->nav->add_nav( $nav_item );
    156156
    157157        /**
    158158         * Fires after a link is added to the main BuddyPress nav.
     
    167167         */
    168168        do_action( 'bp_core_create_nav_link', $r, $args, $defaults, $component );
    169169
    170         return $retval;
     170        return $nav_item;
    171171}
    172172
    173173/**
     
    536536                'show_in_admin_bar' => (bool) $r['show_in_admin_bar'],
    537537        );
    538538
    539         return buddypress()->{$component}->nav->add_nav( $subnav_item );
     539        buddypress()->{$component}->nav->add_nav( $subnav_item );
     540
     541        return $subnav_item;
    540542}
    541543
    542544/**