#3070 closed defect (bug) (fixed)
bp_before_directory_groups_list action duplicate
Reported by: | travel-junkie | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Templates | Keywords: | needs-patch |
Cc: | stas@… |
Description
do_action( 'bp_before_directory_groups_list' ); is present right now (1.3-bleeding) in both groups/groups-loop.php and groups/index.php, which leads to duplicate content on the groups directorys page for any functions attached to this action.
Change History (8)
#2
@
14 years ago
- Keywords needs-patch added; action removed
- Milestone changed from Awaiting Review to 1.3
Patches welcome!
#3
@
14 years ago
I can't reproduce this.
Could you guide me, what steps you did to get duplicated results with this hook?
Thanks.
#5
@
14 years ago
The do_action is in the two files mentioned in the ticket; it should probably only be in one. If someone hooks some HTML in, intended for once place, it'll appear twice. (probably take out of index.php, but see what happens to similar actions in the other templates)
#6
@
14 years ago
Yep, that's how I tested it.
I hooked a dummy function that is echoing something and I couldn't reproduce duplication in groups listings.
The same actually happens on all directory pages.