Ticket #2981: 2981.001.patch
File 2981.001.patch, 4.4 KB (added by , 14 years ago) |
---|
-
buddypress/bp-blogs/bp-blogs-templatetags.php
83 83 if ( $this->current_blog + 1 < $this->blog_count ) { 84 84 return true; 85 85 } elseif ( $this->current_blog + 1 == $this->blog_count ) { 86 do_action(' loop_end');86 do_action('blog_loop_end'); 87 87 // Do some cleaning up after the loop 88 88 $this->rewind_blogs(); 89 89 } … … 99 99 $this->blog = $this->next_blog(); 100 100 101 101 if ( 0 == $this->current_blog ) // loop has just started 102 do_action(' loop_start');102 do_action('blog_loop_start'); 103 103 } 104 104 } 105 105 -
buddypress/bp-core/bp-core-templatetags.php
86 86 if ( $this->current_member + 1 < $this->member_count ) { 87 87 return true; 88 88 } elseif ( $this->current_member + 1 == $this->member_count ) { 89 do_action(' loop_end');89 do_action('member_loop_end'); 90 90 // Do some cleaning up after the loop 91 91 $this->rewind_members(); 92 92 } … … 102 102 $this->member = $this->next_member(); 103 103 104 104 if ( 0 == $this->current_member ) // loop has just started 105 do_action(' loop_start');105 do_action('member_loop_start'); 106 106 } 107 107 } 108 108 -
buddypress/bp-forums/bp-forums-templatetags.php
139 139 if ( $this->current_topic + 1 < $this->topic_count ) { 140 140 return true; 141 141 } elseif ( $this->current_topic + 1 == $this->topic_count ) { 142 do_action(' loop_end');142 do_action('forum_loop_end'); 143 143 // Do some cleaning up after the loop 144 144 $this->rewind_topics(); 145 145 } … … 156 156 $this->topic = (object)$this->topic; 157 157 158 158 if ( $this->current_topic == 0 ) // loop has just started 159 do_action(' loop_start');159 do_action('forum_loop_start'); 160 160 } 161 161 } 162 162 … … 798 798 if ( $this->current_post + 1 < $this->post_count ) { 799 799 return true; 800 800 } elseif ( $this->current_post + 1 == $this->post_count ) { 801 do_action(' loop_end');801 do_action('topic_loop_end'); 802 802 // Do some cleaning up after the loop 803 803 $this->rewind_posts(); 804 804 } … … 815 815 $this->post = (object)$this->post; 816 816 817 817 if ( $this->current_post == 0 ) // loop has just started 818 do_action(' loop_start');818 do_action('topic_loop_start'); 819 819 } 820 820 } 821 821 -
buddypress/bp-groups/bp-groups-templatetags.php
105 105 if ( $this->current_group + 1 < $this->group_count ) { 106 106 return true; 107 107 } elseif ( $this->current_group + 1 == $this->group_count ) { 108 do_action(' loop_end');108 do_action('group_loop_end'); 109 109 // Do some cleaning up after the loop 110 110 $this->rewind_groups(); 111 111 } … … 124 124 $this->group = new BP_Groups_Group( $this->group->group_id ); 125 125 126 126 if ( 0 == $this->current_group ) // loop has just started 127 do_action(' loop_start');127 do_action('group_loop_start'); 128 128 } 129 129 } 130 130 … … 2066 2066 if ( $this->current_request + 1 < $this->request_count ) { 2067 2067 return true; 2068 2068 } elseif ( $this->current_request + 1 == $this->request_count ) { 2069 do_action(' loop_end');2069 do_action('group_request_loop_end'); 2070 2070 // Do some cleaning up after the loop 2071 2071 $this->rewind_requests(); 2072 2072 } … … 2082 2082 $this->request = $this->next_request(); 2083 2083 2084 2084 if ( 0 == $this->current_request ) // loop has just started 2085 do_action(' loop_start');2085 do_action('group_request_loop_start'); 2086 2086 } 2087 2087 } 2088 2088 -
buddypress/bp-messages/bp-messages-templatetags.php
99 99 if ( $this->current_thread + 1 < $this->thread_count ) { 100 100 return true; 101 101 } elseif ( $this->current_thread + 1 == $this->thread_count ) { 102 do_action(' loop_end');102 do_action('messages_box_loop_end'); 103 103 // Do some cleaning up after the loop 104 104 $this->rewind_threads(); 105 105 } … … 143 143 $this->thread->last_message_content = $this->thread->messages[$last_message_index]->message; 144 144 145 145 if ( 0 == $this->current_thread ) // loop has just started 146 do_action(' loop_start');146 do_action('messages_box_loop_start'); 147 147 } 148 148 } 149 149