diff --git a/bp-core/bp-core-catchuri.php b/bp-core/bp-core-catchuri.php
index 7ce8bf7..b0ba936 100644
a
|
b
|
if ( !defined( 'ABSPATH' ) ) exit; |
37 | 37 | * |
38 | 38 | */ |
39 | 39 | function bp_core_set_uri_globals() { |
40 | | global $bp, $current_blog; |
41 | | |
| 40 | global $bp, $current_blog, $wp_rewrite; |
| 41 | |
42 | 42 | // Don't catch URIs on non-root blogs unless multiblog mode is on |
43 | 43 | if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) |
44 | 44 | return false; |
… |
… |
function bp_core_set_uri_globals() { |
156 | 156 | break; |
157 | 157 | } |
158 | 158 | } |
159 | | |
| 159 | |
160 | 160 | // No exact match, so look for partials |
161 | 161 | if ( empty( $match ) ) { |
162 | 162 | |
… |
… |
function bp_core_set_uri_globals() { |
227 | 227 | } |
228 | 228 | |
229 | 229 | // This is not a BuddyPress page, so just return. |
230 | | if ( !isset( $matches ) ) |
| 230 | if ( empty( $matches ) ) |
231 | 231 | return false; |
232 | 232 | |
| 233 | $wp_rewrite->use_verbose_page_rules = false; |
| 234 | |
233 | 235 | // Find the offset. With $root_profile set, we fudge the offset down so later parsing works |
234 | 236 | $slug = !empty ( $match ) ? explode( '/', $match->slug ) : ''; |
235 | 237 | $uri_offset = empty( $root_profile ) ? 0 : -1; |