Skip to:
Content

BuddyPress.org

Changeset 1067 for trunk/bp-core.php


Ignore:
Timestamp:
02/12/2009 02:18:42 AM (16 years ago)
Author:
apeatling
Message:

Fixed bug around recording of password protected posts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1063 r1067  
    982982        return false;
    983983   
    984     if ( time() >= strtotime( '+5 minutes', get_usermeta( $bp->loggedin_user->id, 'last_activity' ) ) || '' == get_usermeta( $bp->loggedin_user->id, 'last_activity' ) ) {
    985         // Updated last site activity for this user.
     984    if ( '' == get_usermeta( $bp->loggedin_user->id, 'last_activity' ) )
     985        update_usermeta( $bp->loggedin_user->id, 'last_activity', time() );     
     986   
     987    if ( time() >= strtotime( '+5 minutes', get_usermeta( $bp->loggedin_user->id, 'last_activity' ) ) )
    986988        update_usermeta( $bp->loggedin_user->id, 'last_activity', time() );
    987     }
    988989}
    989990add_action( 'wp_head', 'bp_core_record_activity' );
Note: See TracChangeset for help on using the changeset viewer.