[Bb-trac] [bbPress] #846: bb_profile_menu action hook fires twice

bbPress bb-trac at lists.bbpress.org
Mon Mar 31 20:52:51 GMT 2008


#846: bb_profile_menu action hook fires twice
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:     
     Type:  defect    |      Status:  new
 Priority:  low       |   Milestone:  0.9
Component:  Back-end  |     Version:     
 Severity:  minor     |    Keywords:     
----------------------+-----------------------------------------------------
 I don't envy the person who has to track down this bug and it's kinda
 trivial since we have a workaround, but I just wanted to make sure it's on
 the record.

 This is another behaviour that I am not certain is on purpose by design or
 a bug but it causes a weird issue where any plugin that adds a profile
 page has to add code to deal with it.

 Basically if you add an action to the `bb_profile_menu` hook so you can
 add a profile tab, you have to check the global `$self` to make sure you
 aren't looping a second time. (It's unset the first time and has the
 plugin name the second time). Otherwise the tab will be added twice.

 This may be a legacy behaviour for some reason I don't follow.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/846>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list