Changeset 8251 for trunk/bp-templates/bp-legacy/buddypress-functions.php
- Timestamp:
- 04/08/2014 06:55:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/buddypress-functions.php
r8201 r8251 707 707 exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' ); 708 708 709 $last_ id = isset( $_POST['offset'] ) ? absint( $_POST['offset'] ) + 1: 0;710 if ( $last_ id ) {711 $activity_args = array( ' offset' => $last_id );712 $bp->activity-> new_update_id = $activity_id;709 $last_recorded = isset( $_POST['since'] ) ? date( 'Y-m-d H:i:s', intval( $_POST['since'] ) ) : 0; 710 if ( $last_recorded ) { 711 $activity_args = array( 'since' => $last_recorded ); 712 $bp->activity->last_recorded = $last_recorded; 713 713 add_filter( 'bp_get_activity_css_class', 'bp_activity_newest_class', 10, 1 ); 714 714 } else { … … 723 723 } 724 724 725 if ( ! empty( $last_ id ) ) {725 if ( ! empty( $last_recorded ) ) { 726 726 remove_filter( 'bp_get_activity_css_class', 'bp_activity_newest_class', 10, 1 ); 727 727 }
Note: See TracChangeset
for help on using the changeset viewer.