#2981 closed defect (bug) (fixed)
Change "loop_start/end" actions to "component_loop_start/end"
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | 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.
(In [3616]) Changes loop_start/loop_end actions to be component-specific. Fixes #2981. Props r-a-y