Changeset 5970
- Timestamp:
- 04/09/2012 09:36:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r5954 r5970 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() ) … … 157 157 } 158 158 } 159 159 160 160 // No exact match, so look for partials 161 161 if ( empty( $match ) ) { … … 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 233 $wp_rewrite->use_verbose_page_rules = false; 232 234 233 235 // Find the offset. With $root_profile set, we fudge the offset down so later parsing works
Note: See TracChangeset
for help on using the changeset viewer.