Skip to:
Content

BuddyPress.org

Ticket #7690: 7690.02.patch

File 7690.02.patch, 992 bytes (added by DJPaul, 3 years ago)
  • src/bp-core/bp-core-functions.php

    diff --git a/src/bp-core/bp-core-functions.php b/src/bp-core/bp-core-functions.php
    index ddef982dd..cb4c07e7d 100644
    a b function bp_nav_menu_get_loggedin_pages() { 
    25532553        // Pull up a list of items registered in BP's primary nav for the member.
    25542554        $bp_menu_items = buddypress()->members->nav->get_primary();
    25552555
     2556        $member_slug = bp_core_get_directory_pages()->members->slug;
     2557        $name        = bp_get_loggedin_user_username();
     2558
     2559        $_bp_menu_items[] = array(
     2560                'name' => __( 'Hxome', 'buddypress' ),
     2561                'slug' => 'home',
     2562                'link' => bp_core_get_user_domain( get_current_user_id() ) . 'front/',
     2563        );
     2564        //      bp_core_get_user_domain( $user_id ) . bp_get_profile_slug()
     2565
     2566
     2567        $bp_menu_items = array_merge( $_bp_menu_items, $bp_menu_items );
     2568
    25562569        // Some BP nav menu items will not be represented in bp_nav, because
    25572570        // they are not real BP components. We add them manually here.
    25582571        $bp_menu_items[] = array(