Changeset 7334 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 08/02/2013 06:29:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7260 r7334 835 835 return false; 836 836 837 $activity = bp_get_user_ meta( $user_id, 'last_activity', true);837 $activity = bp_get_user_last_activity( $user_id ); 838 838 839 839 if ( !is_numeric( $activity ) ) … … 848 848 } 849 849 850 if ( empty( $activity ) || strtotime( $current_time ) >= strtotime( '+5 minutes', $activity ) ) 851 bp_update_user_meta( $user_id, 'last_activity', $current_time ); 850 if ( empty( $activity ) || strtotime( $current_time ) >= strtotime( '+5 minutes', $activity ) ) { 851 bp_update_user_last_activity( $user_id, $current_time ); 852 } 852 853 } 853 854 add_action( 'wp_head', 'bp_core_record_activity' );
Note: See TracChangeset
for help on using the changeset viewer.