diff -Naur /buddypress/bp-core/bp-core-catchuri.php /buddypress.orig/bp-core/bp-core-catchuri.php
old
|
new
|
|
660 | 660 | $bp->canonical_stack['requested_url'] .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
661 | 661 | } |
662 | 662 | |
663 | | return $bp->canonical_stack['requested_url']; |
| 663 | return apply_filters( 'bp_get_requested_url', $bp->canonical_stack['requested_url'] ); |
664 | 664 | } |
665 | 665 | |
666 | 666 | /** |
diff -Naur /buddypress/bp-core/bp-core-functions.php /buddypress.orig/bp-core/bp-core-functions.php
old
|
new
|
|
1190 | 1190 | // Get the home URL |
1191 | 1191 | $home_url = strtolower( home_url() ); |
1192 | 1192 | |
1193 | | // Build the currently requested URL |
1194 | | $scheme = is_ssl() ? 'https://' : 'http://'; |
1195 | | $requested_url = strtolower( $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); |
| 1193 | $requested_url = bp_get_requested_url(); |
1196 | 1194 | |
1197 | 1195 | // Check the nonce |
1198 | 1196 | $result = isset( $_REQUEST[$query_arg] ) ? wp_verify_nonce( $_REQUEST[$query_arg], $action ) : false; |