Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/30/2010 04:34:05 PM (14 years ago)
Author:
boonebgorges
Message:

Changes loop_start/loop_end actions to be component-specific. Fixes #2981. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r3592 r3616  
    106106            return true;
    107107        } elseif ( $this->current_group + 1 == $this->group_count ) {
    108             do_action('loop_end');
     108            do_action('group_loop_end');
    109109            // Do some cleaning up after the loop
    110110            $this->rewind_groups();
     
    125125
    126126        if ( 0 == $this->current_group ) // loop has just started
    127             do_action('loop_start');
     127            do_action('group_loop_start');
    128128    }
    129129}
     
    20672067            return true;
    20682068        } elseif ( $this->current_request + 1 == $this->request_count ) {
    2069             do_action('loop_end');
     2069            do_action('group_request_loop_end');
    20702070            // Do some cleaning up after the loop
    20712071            $this->rewind_requests();
     
    20832083
    20842084        if ( 0 == $this->current_request ) // loop has just started
    2085             do_action('loop_start');
     2085            do_action('group_request_loop_start');
    20862086    }
    20872087}
Note: See TracChangeset for help on using the changeset viewer.