Ticket #6189: 6189.2.patch
File 6189.2.patch, 2.6 KB (added by , 10 years ago) |
---|
-
src/bp-groups/bp-groups-template.php
340 340 $this->pag_arg => '%#%' 341 341 ); 342 342 343 if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {344 $base = remove_query_arg( 's', wp_get_referer() );345 } else {346 $base = '';347 }348 349 343 $add_args = array( 350 344 'num' => $this->pag_num, 351 345 'sortby' => $this->sort_by, … … 357 351 } 358 352 359 353 $this->pag_links = paginate_links( array( 360 'base' => add_query_arg( $pag_args, $base),354 'base' => add_query_arg( $pag_args, '' ), 361 355 'format' => '', 362 356 'total' => ceil( (int) $this->total_group_count / (int) $this->pag_num ), 363 357 '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,