Skip to:
Content

BuddyPress.org

Changeset 6483


Ignore:
Timestamp:
11/03/2012 09:53:54 PM (13 years ago)
Author:
djpaul
Message:

Add query string search support to bp_has_activities. Fixes #4643

This change brings the activity component inline with the members,
groups, and blogs components in terms of being able to search with a
?s= parameter on the URL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r6452 r6483  
    368368    $r = wp_parse_args( $args, $defaults );
    369369    extract( $r );
     370
     371    if ( empty( $search_terms ) && ! empty( $_REQUEST['s'] ) )
     372        $search_terms = $_REQUEST['s'];
    370373
    371374    // If you have passed a "scope" then this will override any filters you have passed.
Note: See TracChangeset for help on using the changeset viewer.