Changeset 3592 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 12/27/2010 10:57:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r3583 r3592 66 66 // Running off blog other than root 67 67 if ( defined( 'BP_ENABLE_MULTIBLOG' ) || 1 != BP_ROOT_BLOG ) { 68 68 69 69 // Any subdirectory names must be removed from $bp_uri. 70 70 // This includes two cases: (1) when WP is installed in a subdirectory, … … 74 74 foreach( $chunks as $key => $chunk ) { 75 75 $bkey = array_search( $chunk, $bp_uri ); 76 76 77 77 if ( $bkey !== false ) 78 78 unset( $bp_uri[$bkey] ); 79 79 80 80 $bp_uri = array_values( $bp_uri ); 81 81 } … … 141 141 unset( $uri_chunks ); 142 142 } 143 143 144 144 // Search doesn't have an associated page, so we check for it separately 145 145 if ( !empty( $bp_uri[0] ) && BP_SEARCH_SLUG == $bp_uri[0] ) 146 146 $matches[] = 1; 147 147 148 148 // This is not a BuddyPress page, so just return. 149 149 if ( !isset( $matches ) )
Note: See TracChangeset
for help on using the changeset viewer.