Skip to:
Content

BuddyPress.org

Changeset 6641


Ignore:
Timestamp:
12/16/2012 02:12:36 PM (12 years ago)
Author:
djpaul
Message:

Use bp_core_can_edit_settings() instead of bp_is_my_profile() in bp_get_nav_menu_items(). See #4661

This fixes a problem where the top-level Messages menu item was not
being output in bp_nav_menu(), thus promoting the child items (inbox,
sent, compose, and notices) to the top-level when viewing someone
else's user profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r6640 r6641  
    18441844
    18451845        // Skip items marked as user-specific if you're not on your own profile
    1846         if ( ! $nav['show_for_displayed_user'] && ! bp_is_my_profile() )
     1846        if ( ! $nav['show_for_displayed_user'] && ! bp_core_can_edit_settings() )
    18471847            continue;
    18481848
Note: See TracChangeset for help on using the changeset viewer.