diff --git src/bp-core/bp-core-buddybar.php src/bp-core/bp-core-buddybar.php
index aba16c5..907b6ec 100644
|
|
|
function bp_core_create_nav_link( $args = '' ) { |
| 121 | 121 | return false; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | | /** |
| 125 | | * If this nav item is hidden for the displayed user, and |
| 126 | | * the logged in user is not the displayed user |
| 127 | | * looking at their own profile, don't create the nav item. |
| 128 | | */ |
| 129 | | if ( empty( $r['show_for_displayed_user'] ) && ! bp_user_has_access() ) { |
| 130 | | return false; |
| 131 | | } |
| 132 | | |
| 133 | 124 | if ( empty( $r['item_css_id'] ) ) { |
| 134 | 125 | $r['item_css_id'] = $r['slug']; |
| 135 | 126 | } |