Skip to:
Content

BuddyPress.org

Changeset 13201


Ignore:
Timestamp:
12/30/2021 02:55:53 PM (3 years ago)
Author:
imath
Message:

Improve the Core Search routing function to support Activity search

bp_core_action_search_site() will now redirect activity searches to the Activity directory page.

Fixes #8608

File:
1 edited

Legend:

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

    r13168 r13201  
    24662466 *
    24672467 * @since 1.0.1
     2468 * @since 10.0.0 Add support for Activity search.
    24682469 *
    24692470 * @param string $slug The slug to redirect to for searching.
     
    24992500                    }
    25002501                }
     2502                break;
     2503
     2504            case 'activity':
     2505                $slug = bp_is_active( 'activity' )  ? bp_get_activity_root_slug()  : '';
    25012506                break;
    25022507
Note: See TracChangeset for help on using the changeset viewer.