Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#2981 closed defect (bug) (fixed)

Change "loop_start/end" actions to "component_loop_start/end"

Reported by: r-a-y Owned by:
Priority: normal Milestone: 1.5
Component: Core Version:
Severity: normal Keywords: dev-feedback has-patch
Cc:

Description

During each of the BuddyPress component loops, we have an action during the beginning and end of the loop.

However, only the activity, message thread and xprofile loops have a prefix.

See:
​http://trac.buddypress.org/browser/trunk/bp-activity/bp-activity-templatetags.php#L131
​http://trac.buddypress.org/browser/trunk/bp-activity/bp-activity-templatetags.php#L112

​http://trac.buddypress.org/browser/trunk/bp-messages/bp-messages-templatetags.php#L669
​http://trac.buddypress.org/browser/trunk/bp-messages/bp-messages-templatetags.php#L653

​http://trac.buddypress.org/browser/trunk/bp-xprofile/bp-xprofile-templatetags.php#L79
​http://trac.buddypress.org/browser/trunk/bp-xprofile/bp-xprofile-templatetags.php#L63

The other components do not. Any reason why?
This would make it easier to do checks during each respective loop.

---

The only caveat of making such a change is any plugins taking advantage of the existing actions will need to update their plugins.

Attachments (1)

2981.001.patch​ (4.4 KB ) - added by r-a-y 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @boonebgorges
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [3616]) Changes loop_start/loop_end actions to be component-specific. Fixes #2981. Props r-a-y

#2 @johnjamesjacoby
15 years ago

  • Milestone Awaiting Review → 1.5
  • Severity → normal
  • Version 1.5

Moving closed ticket out of Awaiting Review.

Note: See TracTickets for help on using tickets.