Changeset 6745 for trunk/src/includes/search/template.php
- Timestamp:
- 11/29/2017 12:46:17 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/search/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/search/template.php
r6700 r6745 203 203 // Pretty permalinks 204 204 if ( bbp_use_pretty_urls() ) { 205 206 // Run through home_url() 205 207 $url = bbp_get_root_url() . bbp_get_search_slug(); 206 208 $url = user_trailingslashit( $url ); … … 334 336 // Shortcode territory 335 337 if ( is_page() || is_single() ) { 336 $base = trailingslashit( get_permalink());338 $base = get_permalink(); 337 339 338 340 // Default search location 339 341 } else { 340 $base = trailingslashit( bbp_get_search_results_url());342 $base = bbp_get_search_results_url(); 341 343 } 342 344 343 345 // Add pagination base 344 $base = $base. user_trailingslashit( bbp_get_paged_slug() . '/%#%/' );346 $base = trailingslashit( $base ) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' ); 345 347 346 348 // Unpretty permalinks
Note: See TracChangeset
for help on using the changeset viewer.