Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/19/2016 06:18:07 PM (8 years ago)
Author:
r-a-y
Message:

Core: Remove redundant strtotime() calls.

See #5781.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r11008 r11019  
    14431443
    14441444    // Get current time.
    1445     $current_time = bp_core_current_time();
     1445    $current_time = bp_core_current_time( true, 'timestamp' );
    14461446
    14471447    // Use this action to detect the very first activity for a given member.
     
    14611461
    14621462    // If it's been more than 5 minutes, record a newer last-activity time.
    1463     if ( empty( $activity ) || ( strtotime( $current_time ) >= strtotime( '+5 minutes', $activity ) ) ) {
     1463    if ( empty( $activity ) || ( $current_time >= strtotime( '+5 minutes', $activity ) ) ) {
    14641464        bp_update_user_last_activity( $user_id, $current_time );
    14651465    }
Note: See TracChangeset for help on using the changeset viewer.