Ticket #6189: 6189.patch
File 6189.patch, 2.6 KB (added by , 10 years ago) |
---|
-
src/bp-groups/bp-groups-template.php
316 316 $this->pag_arg => '%#%' 317 317 ); 318 318 319 if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {320 $base = remove_query_arg( 's', wp_get_referer() );321 } else {322 $base = '';323 }324 325 319 $add_args = array( 326 320 'num' => $this->pag_num, 327 321 'sortby' => $this->sort_by, … … 333 327 } 334 328 335 329 $this->pag_links = paginate_links( array( 336 'base' => add_query_arg( $pag_args, $base),330 'base' => add_query_arg( $pag_args, '' ), 337 331 'format' => '', 338 332 'total' => ceil( (int) $this->total_group_count / (int) $this->pag_num ), 339 333 'current' => $this->pag_page, -
src/bp-members/bp-members-template.php
316 316 $this->pag_arg => '%#%', 317 317 ); 318 318 319 if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {320 $base = remove_query_arg( 's', wp_get_referer() );321 } else {322 $base = '';323 }324 325 319 /** 326 320 * Defaults to an empty array to make sure paginate_links() 327 321 * won't add the $page_arg to the links which would break … … 334 328 } 335 329 336 330 $this->pag_links = paginate_links( array( 337 'base' => add_query_arg( $pag_args, $base),331 'base' => add_query_arg( $pag_args, '' ), 338 332 'format' => '', 339 333 'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ), 340 334 'current' => (int) $this->pag_page, -
src/bp-messages/bp-messages-template.php
208 208 $r['page_arg'] => '%#%', 209 209 ); 210 210 211 if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {212 $base = remove_query_arg( 's', wp_get_referer() );213 } else {214 $base = '';215 }216 217 211 $add_args = array(); 218 212 219 213 if ( ! empty( $this->search_terms ) ) { … … 221 215 } 222 216 223 217 $this->pag_links = paginate_links( array( 224 'base' => add_query_arg( $pag_args, $base),218 'base' => add_query_arg( $pag_args, '' ), 225 219 'format' => '', 226 220 'total' => ceil( (int) $this->total_thread_count / (int) $this->pag_num ), 227 221 'current' => $this->pag_page,