Skip to:
Content

BuddyPress.org

Changeset 13203


Ignore:
Timestamp:
01/02/2022 11:50:18 AM (2 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 (branch 9.0)

File:
1 edited

Legend:

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

    r12932 r13203  
    24452445 *
    24462446 * @since 1.0.1
     2447 * @since 10.0.0 Add support for Activity search.
    24472448 *
    24482449 * @param string $slug The slug to redirect to for searching.
     
    24782479                    }
    24792480                }
     2481                break;
     2482
     2483            case 'activity':
     2484                $slug = bp_is_active( 'activity' )  ? bp_get_activity_root_slug()  : '';
    24802485                break;
    24812486
Note: See TracChangeset for help on using the changeset viewer.