[buddypress-trac] [BuddyPress] #2262: Patch for bp_core_new_subnav_item and bp_core_remove_subnav_item

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Mar 30 00:55:00 UTC 2010


#2262: Patch for bp_core_new_subnav_item and bp_core_remove_subnav_item
-----------------------+----------------------------------------------------
 Reporter:  calvin_42  |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  1.3
Component:  Core       |    Keywords:     
-----------------------+----------------------------------------------------
 Version : all / trunk
 Happen : every time
 What : bp_core_remove_subnav_item doesn't remove_action of the old
 screen_function.

 Sorry my SVN diff tool doesn't work so I will write down the diff myself :

 ------------------------

 [http://trac.buddypress.org/browser/trunk/bp-core.php?rev=2873#L740
 Function bp_core_new_subnav_item - Line 740]

 Replace line 813 with

 {{{
 'user_has_access' => $user_has_access,
 'screen_function' => $screenfunction
 }}}

 [http://trac.buddypress.org/browser/trunk/bp-core.php?rev=2873#L885
 Function bp_core_remove_subnav_item- Line 885]

 Replace block line 888-890 with

 {{{
 $screen_function=
 $bp->bp_options_nav[$parent_id][$slug]['screen_function'];

         if ( $screen_function) {
 }}}

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


More information about the buddypress-trac mailing list