Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2021 04:47:17 PM (3 years ago)
Author:
imath
Message:

Add a new method to the Members & Groups components main class

BP_Members_Component::setup_additional_globals() & BP_Groups_Component::setup_additional_globals() are used to set specific components globals that are not passed to BP_Component::setup_globals(). This commit also makes sure the BP Nouveau template pack uses a consistent object ID for its directory navigation.

Fixes #8555

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12930 r13087  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 10.0.0
    77 *
    88 * @buddypress-template-pack {
     
    7676
    7777        $this->includes_dir  = trailingslashit( $this->dir ) . 'includes/';
    78         $this->directory_nav = new BP_Core_Nav();
     78        $this->directory_nav = new BP_Core_Nav( bp_get_root_blog_id() );
    7979    }
    8080
Note: See TracChangeset for help on using the changeset viewer.