Skip to:
Content

BuddyPress.org

Ticket #8005: 8005.diff

File 8005.diff, 590 bytes (added by espellcaste, 3 years ago)
  • src/bp-core/bp-core-template.php

    diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
    index 93848249f..81aae27f8 100644
    function bp_get_title_parts( $seplocation = 'right' ) { 
    30313031
    30323032                if ( ! empty( $bp->members->nav ) ) {
    30333033                        $primary_nav_item = $bp->members->nav->get_primary( array( 'slug' => $component_id ), false );
    3034                         $primary_nav_item = reset( $primary_nav_item );
     3034                        $primary_nav_item = $primary_nav_item ? reset( $primary_nav_item ) : $primary_nav_item;
    30353035                }
    30363036
    30373037                // Use the component nav name.