Skip to:
Content

BuddyPress.org

Changeset 8813


Ignore:
Timestamp:
08/12/2014 01:43:56 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Use HOUR_IN_SECONDS in bp_xprofile_updated_profile_activity().

File:
1 edited

Legend:

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

    r8808 r8813  
    296296    // Default throttle time is 2 hours. Filter to change (in seconds)
    297297    if ( ! empty( $existing['activities'] ) ) {
    298         $throttle_period = apply_filters( 'bp_xprofile_updated_profile_activity_throttle_time', 60 * 60 * 2 );
     298        $throttle_period = apply_filters( 'bp_xprofile_updated_profile_activity_throttle_time', HOUR_IN_SECONDS * 2 );
    299299        $then            = strtotime( $existing['activities'][0]->date_recorded );
    300300        $now             = strtotime( bp_core_current_time() );
Note: See TracChangeset for help on using the changeset viewer.