Ticket #4144: 4144.01.patch
File 4144.01.patch, 577 bytes (added by , 12 years ago) |
---|
-
bp-core/bp-core-buddybar.php
function bp_core_new_subnav_item( $args = '' ) { 234 234 $link = $parent_url . $slug; 235 235 236 236 // If this sub item is the default for its parent, skip the slug 237 if ( $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) {237 if ( !empty( $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) && $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) { 238 238 $link = $parent_url; 239 239 } 240 240 }