Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2012 06:03:00 PM (12 years ago)
Author:
r-a-y
Message:

EOF:

  • Fall in line with WordPress 3.4 coding practices by removing all EOF closing PHP tags.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-akismet.php

    r6310 r6342  
    118118     */
    119119    public function add_activity_stream_nonce() {
    120         $form_id = '_bp_as_nonce'; 
     120        $form_id = '_bp_as_nonce';
    121121        $value   = '_bp_as_nonce_' . bp_loggedin_user_id();
    122122
     
    249249
    250250        do_action( 'bp_activity_akismet_mark_as_ham', $activity, $source );
    251     } 
     251    }
    252252
    253253    /**
     
    576576    $interval = max( 1, absint( $interval ) );
    577577
    578     // _bp_akismet_submission meta values are large, so expire them after $interval days regardless of the activity status 
     578    // _bp_akismet_submission meta values are large, so expire them after $interval days regardless of the activity status
    579579    $sql          = $wpdb->prepare( "SELECT a.id FROM {$bp->activity->table_name} a LEFT JOIN {$bp->activity->table_name_meta} m ON a.id = m.activity_id WHERE m.meta_key = %s AND DATE_SUB(%s, INTERVAL {$interval} DAY) > a.date_recorded LIMIT 10000", '_bp_akismet_submission', current_time( 'mysql', 1 ) );
    580580    $activity_ids = $wpdb->get_col( $sql );
     
    585585    }
    586586}
    587 ?>
Note: See TracChangeset for help on using the changeset viewer.