diff --git src/includes/replies/template.php src/includes/replies/template.php
index 925ff91..c5a0d08 100644
|
|
|
function bbp_has_replies( $args = array() ) { |
| 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( '/&paged=1(?=[^0-9])/m', '', $bbp->reply_query->pagination_links ); |
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | } |
diff --git src/includes/search/template.php src/includes/search/template.php
index 25e4de3..548a1c9 100644
|
|
|
function bbp_has_search_results( $args = array() ) { |
| 155 | 155 | if ( bbp_use_pretty_urls() ) { |
| 156 | 156 | $bbp->search_query->pagination_links = str_replace( bbp_get_paged_slug() . '/1/', '', $bbp->search_query->pagination_links ); |
| 157 | 157 | } else { |
| 158 | | $bbp->search_query->pagination_links = str_replace( '&paged=1', '', $bbp->search_query->pagination_links ); |
| | 158 | $bbp->search_query->pagination_links = preg_replace( '/&paged=1(?=[^0-9])/m', '', $bbp->search_query->pagination_links ); |
| 159 | 159 | } |
| 160 | 160 | } |
| 161 | 161 | |
diff --git src/includes/topics/template.php src/includes/topics/template.php
index 18270c9..e19b85a 100644
|
|
|
function bbp_topic_pagination( $args = array() ) { |
| 909 | 909 | if ( bbp_use_pretty_urls() ) { |
| 910 | 910 | $pagination_links = str_replace( bbp_get_paged_slug() . '/1/', '', $pagination_links ); |
| 911 | 911 | } else { |
| 912 | | $pagination_links = str_replace( '&paged=1', '', $pagination_links ); |
| | 912 | $pagination_links = preg_replace( '/&paged=1(?=[^0-9])/m', '', $pagination_links ); |
| 913 | 913 | } |
| 914 | 914 | |
| 915 | 915 | // Add before and after to pagination links |