Changeset 4172
- Timestamp:
- 04/07/2011 08:07:24 PM (14 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r4112 r4172 187 187 188 188 // Force BP to recognize that this is a members page 189 $matches[] 190 $match 191 $match->key 189 $matches[] = 1; 190 $match = $bp->pages->members; 191 $match->key = 'members'; 192 192 193 193 // Without the 'members' URL chunk, WordPress won't know which page to load … … 200 200 201 201 // Search doesn't have an associated page, so we check for it separately 202 if ( !empty( $bp_uri[0] ) && ( BP_SEARCH_SLUG == $bp_uri[0] ) ) 203 $matches[] = 1; 202 if ( !empty( $bp_uri[0] ) && ( BP_SEARCH_SLUG == $bp_uri[0] ) ) { 203 $matches[] = 1; 204 $match = new stdClass; 205 $match->key = 'search'; 206 $match->slug = BP_SEARCH_SLUG; 207 } 204 208 205 209 // This is not a BuddyPress page, so just return. -
trunk/bp-core/bp-core-functions.php
r4141 r4172 522 522 if ( empty( $slug ) ) { 523 523 switch ( $search_which ) { 524 case 'posts': 525 $slug = ''; 526 $var = '/?s='; 527 break; 528 524 529 case 'blogs': 525 530 $slug = bp_is_active( 'blogs' ) ? $bp->blogs->root_slug : ''; … … 541 546 } 542 547 543 if ( empty( $slug ) ) {548 if ( empty( $slug ) && 'posts' != $search_which ) { 544 549 bp_core_redirect( bp_get_root_domain() ); 545 550 return; -
trunk/bp-core/bp-core-template.php
r4107 r4172 337 337 if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() && !bp_forum_directory_is_disabled() ) 338 338 $options['forums'] = __( 'Forums', 'buddypress' ); 339 340 $options['posts'] = __( 'Posts', 'buddypress' ); 339 341 340 342 // Eventually this won't be needed and a page will be built to integrate all search results.
Note: See TracChangeset
for help on using the changeset viewer.