diff --git bp-core/bp-core-catchuri.php bp-core/bp-core-catchuri.php
index ed159be..d7fbef5 100644
|
|
|
function bp_get_canonical_url( $args = array() ) {
|
| 621 | 621 | $r = wp_parse_args( $args, $defaults ); |
| 622 | 622 | extract( $r ); |
| 623 | 623 | |
| | 624 | if ( 'page' == get_option( 'show_on_front' ) ) { |
| | 625 | $page_on_front = get_option( 'page_on_front' ); |
| | 626 | if ( $page_on_front && is_page( $page_on_front ) ) { |
| | 627 | $bp->canonical_stack['canonical_url'] = bp_get_root_domain(); |
| | 628 | } |
| | 629 | } |
| | 630 | |
| 624 | 631 | if ( empty( $bp->canonical_stack['canonical_url'] ) ) { |
| 625 | 632 | // Build the URL in the address bar |
| 626 | 633 | $requested_url = bp_get_requested_url(); |