Ticket #4154: 4154.diff
File 4154.diff, 1.7 KB (added by , 13 years ago) |
---|
-
bp-core/bp-core-filters.php
271 271 if ( is_front_page() || is_home() ) 272 272 return $title; 273 273 274 // If this is the search page of the site, return WP's title 275 if ( is_search() ) 276 return $title; 277 274 278 $title = ''; 275 279 276 280 // Displayed user -
bp-core/bp-core-functions.php
606 606 * @param string $slug The slug to redirect to for searching. 607 607 */ 608 608 function bp_core_action_search_site( $slug = '' ) { 609 global $bp; 609 610 610 611 if ( !bp_is_current_component( bp_get_search_slug() ) ) 611 612 return; 612 613 if ( empty( $_POST['search-terms'] ) ) {613 614 if ( empty( $_POST['search-terms'] ) && count( $bp->unfiltered_uri ) == 1 ) { 614 615 bp_core_redirect( bp_get_root_domain() ); 615 616 return; 616 617 } 617 618 619 // To allow for pretty search URLs e.g. /search/term/ 620 if(count($bp->unfiltered_uri) > 1 ) 621 return; 622 618 623 $search_terms = stripslashes( $_POST['search-terms'] ); 619 624 $search_which = !empty( $_POST['search-which'] ) ? $_POST['search-which'] : ''; 620 625 $query_string = '/?s='; -
bp-core/bp-core-catchuri.php
427 427 if ( !empty( $bp->no_status_set ) ) 428 428 return false; 429 429 430 // If is_search() is set pass through to native WP search 431 if ( is_search() ) 432 return false; 433 430 434 if ( !isset( $wp_query->queried_object ) && !bp_is_blog_page() ) { 431 435 bp_do_404(); 432 436 }