Skip to:
Content

BuddyPress.org

Ticket #6228: bp-groups-template-6228.diff

File bp-groups-template-6228.diff, 1.9 KB (added by tw2113, 11 years ago)
  • src/bp-groups/bp-groups-template.php

     
    36763676                        return true;
    36773677                } elseif ( $tick == $this->member_count ) {
    36783678
    3679                         do_action( 'loop_end' );
     3679                        /**
     3680                         * Fires right before the rewinding of members list.
     3681                         *
     3682                         * @since BuddyPress (1.0.0)
     3683                         *
     3684                         * @param BP_Groups_Group_Members_Template $this Instance of the current Members template.
     3685                         */
     3686                        do_action( 'loop_end', $this );
    36803687                        // Do some cleaning up after the loop
    36813688                        $this->rewind_members();
    36823689                }
     
    36913698
    36923699                // loop has just started
    36933700                if ( 0 == $this->current_member ) {
    3694                         do_action( 'loop_start' );
     3701
     3702                        /**
     3703                         * Fires if the current member item is the first in the members list.
     3704                         *
     3705                         * @since BuddyPress (1.0.0)
     3706                         *
     3707                         * @param BP_Groups_Group_Members_Template $this Instance of the current Members template.
     3708                         */
     3709                        do_action( 'loop_start', $this );
    36953710                }
    36963711        }
    36973712}
     
    53005315                if ( $tick < $this->invite_count ) {
    53015316                        return true;
    53025317                } elseif ( $tick == $this->invite_count ) {
    5303                         do_action( 'loop_end' );
     5318
     5319                        /**
     5320                         * Fires right before the rewinding of invites list.
     5321                         *
     5322                         * @since BuddyPress (1.1.0)
     5323                         *
     5324                         * @param BP_Groups_Invite_Template $this Instance of the current Invites template.
     5325                         */
     5326                        do_action( 'loop_end', $this );
    53045327                        // Do some cleaning up after the loop
    53055328                        $this->rewind_invites();
    53065329                }
     
    53495372
    53505373                // loop has just started
    53515374                if ( 0 == $this->current_invite ) {
    5352                         do_action( 'loop_start' );
     5375
     5376                        /**
     5377                         * Fires if the current invite item is the first in the loop.
     5378                         *
     5379                         * @since BuddyPress (1.1.0)
     5380                         *
     5381                         * @param BP_Groups_Invite_Template $this Instance of the current Invites template.
     5382                         */
     5383                        do_action( 'loop_start', $this );
    53535384                }
    53545385        }
    53555386}