Ticket #2974: 2974.01.patch
File 2974.01.patch, 1.1 KB (added by , 7 years ago) |
---|
-
src/includes/extend/buddypress/groups.php
108 108 */ 109 109 private function setup_filters() { 110 110 111 // Ensure bbp_is_single_topic() returns true on group forum topics. 112 add_filter( 'bbp_is_single_topic', array( $this, 'is_single_topic' ) ); 113 111 114 // Group forum pagination 112 115 add_filter( 'bbp_topic_pagination', array( $this, 'topic_pagination' ) ); 113 116 add_filter( 'bbp_replies_pagination', array( $this, 'replies_pagination' ) ); … … 147 150 } 148 151 149 152 /** 153 * Ensure that bbp_is_single_topic() returns true on group forum topic pages. 154 * 155 * @since 2.6.0 bbPress (rXXXX) 156 * 157 * @param bool $retval Current boolean. 158 * @return bool 159 */ 160 public function is_single_topic( $retval ) { 161 if ( bp_is_group() && $this->topic_slug === bp_action_variable() && bp_action_variable( 1 ) ) { 162 $retval = true; 163 } 164 165 return $retval; 166 } 167 168 /** 150 169 * The primary display function for group forums 151 170 * 152 171 * @since 2.1.0 bbPress (r3746)