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-forums/bp-forums-templatetags.php

    r3610 r3616  
    140140            return true;
    141141        } elseif ( $this->current_topic + 1 == $this->topic_count ) {
    142             do_action('loop_end');
     142            do_action('forum_loop_end');
    143143            // Do some cleaning up after the loop
    144144            $this->rewind_topics();
     
    157157
    158158        if ( $this->current_topic == 0 ) // loop has just started
    159             do_action('loop_start');
     159            do_action('forum_loop_start');
    160160    }
    161161}
     
    799799            return true;
    800800        } elseif ( $this->current_post + 1 == $this->post_count ) {
    801             do_action('loop_end');
     801            do_action('topic_loop_end');
    802802            // Do some cleaning up after the loop
    803803            $this->rewind_posts();
     
    816816
    817817        if ( $this->current_post == 0 ) // loop has just started
    818             do_action('loop_start');
     818            do_action('topic_loop_start');
    819819    }
    820820}
Note: See TracChangeset for help on using the changeset viewer.