[buddypress-trac] [BuddyPress] #3438: bp_core_remove_nav_item, bp_core_remove_subnav_item not working anymore

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Aug 5 05:44:33 UTC 2011


#3438: bp_core_remove_nav_item, bp_core_remove_subnav_item not working anymore
----------------------+-----------------------------
 Reporter:  sbrajesh  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Awaiting Review
Component:  Core      |    Version:  1.5
 Severity:  normal    |   Keywords:  needs-testing
----------------------+-----------------------------
 Just checked out revision r4926 and now the bp_core_remove_nav_item,
 bp_core_remove_subnav_item has stopped working.

 I tried by putting these into functions.php of my theme

 bp_core_remove_nav_item($bp->groups->id) also using the hard coded slug
 "groups" but none of these worked.
 Same goes for the subnav, I tried removing the "mentions" subnav from
 activity using
 global $bp;
 bp_core_remove_subnav_item($bp->activity->id, 'mentions');

 But that does not work. The code works for bp 1.2 branch though.

 I am not sure of the issue yet. Just had a quick look and seemed like the
 nav menus are getting registered too late( can not confirm at the moment
 though). Will check in the evening and get back with more details.

 Anyone else having the same issue ?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3438>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list