Changeset 6745
- Timestamp:
- 11/29/2017 12:46:17 AM (8 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/ajax.php
r6583 r6745 33 33 global $wp; 34 34 35 $base_url = home_url( trailingslashit( $wp->request ), ( is_ssl() ? 'https' : 'http' ) ); 35 $ssl = is_ssl() ? 'https' : 'http'; 36 $url = trailingslashit( $wp->request ); 37 $base_url = home_url( $url, $ssl ); 36 38 $ajaxurl = add_query_arg( array( 'bbp-ajax' => 'true' ), $base_url ); 37 39 -
trunk/src/includes/common/template.php
r6728 r6745 2054 2054 // Pretty permalinks 2055 2055 if ( bbp_use_pretty_urls() ) { 2056 2057 // Run through home_url() 2056 2058 $url = trailingslashit( bbp_get_root_url() . bbp_get_view_slug() ) . $view; 2057 2059 $url = user_trailingslashit( $url ); … … 2306 2308 // Do we want to include a link to home? 2307 2309 if ( ! empty( $r['include_home'] ) || empty( $r['home_text'] ) ) { 2308 $crumbs[] = '<a href="' . trailingslashit( home_url() ) . '" class="bbp-breadcrumb-home">' . $r['home_text'] . '</a>';2310 $crumbs[] = '<a href="' . esc_url( home_url() ) . '" class="bbp-breadcrumb-home">' . $r['home_text'] . '</a>'; 2309 2311 } 2310 2312 -
trunk/src/includes/replies/template.php
r6737 r6745 459 459 // Don't include pagination if on first page 460 460 if ( 1 >= $reply_page ) { 461 $url = trailingslashit( $topic_url ) . $reply_hash;461 $url = user_trailingslashit( $topic_url ) . $reply_hash; 462 462 463 463 // Include pagination … … 466 466 // Pretty permalinks 467 467 if ( bbp_use_pretty_urls() ) { 468 $url = trailingslashit( $topic_url ) . trailingslashit( bbp_get_paged_slug() ) . trailingslashit( $reply_page ) . $reply_hash; 468 $url = trailingslashit( $topic_url ) . trailingslashit( bbp_get_paged_slug() ) . $reply_page; 469 $url = user_trailingslashit( $url ) . $reply_hash; 469 470 470 471 // Yucky links -
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 -
trunk/src/includes/users/template.php
r6741 r6745 549 549 } 550 550 551 // Run through home_url() 551 552 $url = trailingslashit( bbp_get_root_url() . bbp_get_user_slug() ) . $user_nicename; 552 553 $url = user_trailingslashit( $url );
Note: See TracChangeset
for help on using the changeset viewer.