Skip to:
Content

BuddyPress.org

Changeset 12404


Ignore:
Timestamp:
06/17/2019 06:09:05 PM (5 weeks ago)
Author:
imath
Message:

Do not interfere with WordPress "pretty URL" search slug

Props Ivinco, ericlewis

Fixes #4154

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-catchuri.php

    r11610 r12404  
    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;
Note: See TracChangeset for help on using the changeset viewer.