[buddypress-trac] [BuddyPress] #2280: Need do_action at end of bp_core_add_settings_nav

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Apr 3 04:46:59 UTC 2010


#2280: Need do_action at end of bp_core_add_settings_nav
----------------------+-----------------------------------------------------
 Reporter:  lunabyte  |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:  1.2.4
Component:  Core      |    Keywords:       
----------------------+-----------------------------------------------------
 In ./bp-core/bp-core-settings.php, the function bp_core_add_settings_nav()
 is missing a do_action call at the end of the function, similar to the
 other nav setup functions for activity, profile, etc.

 Other similar functions have this hook, and it seems that without it when
 you attempt to add an additional subpage with bp_core_new_subnav_item, the
 link will show up, but when clicked redirects to the home page.

 Adding the following to the end of the function restores functionality to
 expected behavior.

 {{{
 do_action('bp_settings_setup_nav');
 }}}

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


More information about the buddypress-trac mailing list