Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#3070 closed defect (bug) (fixed)

bp_before_directory_groups_list action duplicate

Reported by: travel-junkie Owned by:
Priority: normal Milestone: 1.5
Component: Templates Version: 1.5
Severity: 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)

#1 @travel-junkie
15 years ago

The same actually happens on all directory pages.

#2 @DJPaul
15 years ago

  • Keywords needs-patch added; action removed
  • Milestone Awaiting Review1.3

Patches welcome!

#3 @sushkov
15 years ago

I can't reproduce this.
Could you guide me, what steps you did to get duplicated results with this hook?

Thanks.

#4 @sushkov
15 years ago

  • Cc stas@… added

#5 @DJPaul
15 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 @sushkov
15 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.

#7 @djpaul
15 years ago

  • Resolutionfixed
  • Status newclosed

(In [4270]) Remove duplicated template actions from directory pages. Fixes #3070

#8 @DJPaul
10 years ago

  • Component Appearance - Template PartsTemplates
Note: See TracTickets for help on using tickets.