Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/22/2011 09:09:23 PM (15 years ago)
Author:
djpaul
Message:

Fix subnav link and highlighting when viewing a private message. Fixes #3169

File:
1 edited

Legend:

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

    r4155 r4240  
    171171        'site_admin_only' => false, // Can only site admins see this nav item?
    172172        'position'        => 90,    // Index of where this nav item should be positioned
    173         'screen_function' => false  // The name of the function to run when clicked
     173        'screen_function' => false, // The name of the function to run when clicked
     174        'link'            => ''     // The link for the subnav item; optional, not usually required.
    174175    );
    175176
     
    181182        return false;
    182183
     184    if ( empty( $link ) )
     185        $link = $parent_url . $slug;
     186
    183187    // If this is for site admins only and the user is not one, don't create the subnav item
    184188    if ( $site_admin_only && !is_super_admin() )
     
    190194    $bp->bp_options_nav[$parent_slug][$slug] = array(
    191195        'name'            => $name,
    192         'link'            => $parent_url . $slug . '/',
     196        'link'            => trailingslashit( $link ),
    193197        'slug'            => $slug,
    194198        'css_id'          => $item_css_id,
Note: See TracChangeset for help on using the changeset viewer.