diff --git src/bp-activity/bp-activity-filters.php src/bp-activity/bp-activity-filters.php
index 5f93fca..e2819e5 100644
|
|
function bp_activity_timestamp_class( $classes = '' ) { |
459 | 459 | if ( empty( $activity_date ) ) { |
460 | 460 | return $classes; |
461 | 461 | } |
462 | | |
| 462 | |
463 | 463 | $classes .= ' date-recorded-' . strtotime( $activity_date ); |
464 | 464 | |
465 | 465 | return $classes; |
… |
… |
function bp_activity_heartbeat_last_recorded( $response = array(), $data = array |
492 | 492 | 'activity_latest_args' |
493 | 493 | ); |
494 | 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 | } |
| 498 | |
495 | 499 | $newest_activities = array(); |
496 | 500 | $last_activity_recorded = 0; |
497 | 501 | |
diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
index 63eb97f..1136e96 100644
|
|
jq(document).ready( function() { |
416 | 416 | just_posted.push( jq(this).attr('id').replace( 'activity-','' ) ); |
417 | 417 | }); |
418 | 418 | |
419 | | bp_ajax_request = jq.post( ajaxurl, { |
| 419 | load_more_args = { |
420 | 420 | action: 'activity_get_older_updates', |
421 | 421 | 'cookie': bp_get_cookies(), |
422 | 422 | 'page': oldest_page, |
423 | 423 | 'exclude_just_posted': just_posted.join(',') |
424 | | }, |
| 424 | } |
| 425 | |
| 426 | load_more_search = bp_get_querystring('s'); |
| 427 | |
| 428 | if ( load_more_search ) { |
| 429 | load_more_args.search_terms = load_more_search; |
| 430 | } |
| 431 | |
| 432 | bp_ajax_request = jq.post( ajaxurl, load_more_args, |
425 | 433 | function(response) |
426 | 434 | { |
427 | 435 | jq('#buddypress li.load-more').removeClass('loading'); |
… |
… |
jq(document).ready( function() { |
1612 | 1620 | } |
1613 | 1621 | |
1614 | 1622 | data.bp_activity_last_recorded = activity_last_recorded; |
| 1623 | |
| 1624 | last_recorded_search = bp_get_querystring('s'); |
| 1625 | |
| 1626 | if ( last_recorded_search ) { |
| 1627 | data.bp_activity_last_recorded_search_terms = last_recorded_search; |
| 1628 | } |
1615 | 1629 | }); |
1616 | 1630 | |
1617 | 1631 | // Increment newest_activities and activity_last_recorded if data has been returned |