Ticket #2702: 2702.diff
File 2702.diff, 855 bytes (added by , 10 years ago) |
---|
-
src/includes/replies/template.php
273 273 // Remove first page from pagination 274 274 if ( $wp_rewrite->using_permalinks() ) { 275 275 $bbp->reply_query->pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $bbp->reply_query->pagination_links ); 276 } else { 277 $bbp->reply_query->pagination_links = str_replace( '&paged=1', '', $bbp->reply_query->pagination_links ); 276 } else{ 277 $bbp->reply_query->pagination_links = preg_replace_callback( '/&paged=1[^0-9]/', 278 function( $matches ){ 279 return str_replace( '&paged=1', '', $matches[0] ); 280 }, 281 $bbp->reply_query->pagination_links ); 278 282 } 279 283 } 280 284 }