Ticket #2702: 2702.3.diff
File 2702.3.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/includes/replies/template.php
273 273 if ( bbp_use_pretty_urls() ) { 274 274 $bbp->reply_query->pagination_links = str_replace( bbp_get_paged_slug() . '/1/', '', $bbp->reply_query->pagination_links ); 275 275 } else { 276 $bbp->reply_query->pagination_links = str_replace( '&paged=1', '', $bbp->reply_query->pagination_links ); 276 $bbp->reply_query->pagination_links = preg_replace_callback( '/&paged=1[^0-9]/', 277 function( $matches ){ 278 return str_replace( '&paged=1', '', $matches[0] ); 279 }, 280 $bbp->reply_query->pagination_links ); 277 281 } 278 282 } 279 283 } -
src/includes/topics/template.php
908 908 if ( bbp_use_pretty_urls() ) { 909 909 $pagination_links = str_replace( bbp_get_paged_slug() . '/1/', '', $pagination_links ); 910 910 } else { 911 $pagination_links = str_replace( '&paged=1', '', $pagination_links ); 911 $pagination_links = preg_replace_callback( '/&paged=1[^0-9]/', 912 function( $matches ){ 913 return str_replace( '&paged=1', '', $matches[0] ); 914 }, 915 $pagination_links ); 912 916 } 913 917 914 918 // Add before and after to pagination links