[buddypress-trac] [BuddyPress] #2981: Change "loop_start/end" actions to "component_loop_start/end"

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Dec 30 01:48:26 UTC 2010


#2981: Change "loop_start/end" actions to "component_loop_start/end"
------------------------------------+-----------------------------
 Reporter:  r-a-y                   |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Core                    |    Version:  1.3
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2981>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list