Skip to:
Content

BuddyPress.org

Ticket #4154: 4154.2.patch

File 4154.2.patch, 588 bytes (added by imath, 5 years ago)
  • src/bp-core/bp-core-catchuri.php

    diff --git src/bp-core/bp-core-catchuri.php src/bp-core/bp-core-catchuri.php
    index c7dd4aef8..0804d2774 100644
    function bp_core_set_uri_globals() { 
    240240        }
    241241
    242242        // Search doesn't have an associated page, so we check for it separately.
    243         if ( !empty( $bp_uri[0] ) && ( bp_get_search_slug() == $bp_uri[0] ) ) {
     243        if ( isset( $_POST['search-terms'] ) && !empty( $bp_uri[0] ) && ( bp_get_search_slug() == $bp_uri[0] ) ) {
    244244                $matches[]   = 1;
    245245                $match       = new stdClass;
    246246                $match->key  = 'search';