Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2014 09:04:05 PM (10 years ago)
Author:
imath
Message:

Add search support in Ajax "Load More" and "Load Newest" activity actions

If a search is performed in activities using the query string "?s=search_terms", make sure the search terms are sent in the ajax arguments of the "Load More" and the "Load Newest" actions.

Fixes #5779

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-filters.php

    r8730 r8817  
    460460        return $classes;
    461461    }
    462    
     462
    463463    $classes .= ' date-recorded-' . strtotime( $activity_date );
    464464
     
    492492        'activity_latest_args'
    493493    );
     494
     495    if ( ! empty( $data['bp_activity_last_recorded_search_terms'] ) && empty( $activity_latest_args['search_terms'] ) ) {
     496        $activity_latest_args['search_terms'] = addslashes( $data['bp_activity_last_recorded_search_terms'] );
     497    }
    494498
    495499    $newest_activities = array();
Note: See TracChangeset for help on using the changeset viewer.