Changeset 6342 for trunk/bp-activity/bp-activity-akismet.php
- Timestamp:
- 09/18/2012 06:03:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-akismet.php
r6310 r6342 118 118 */ 119 119 public function add_activity_stream_nonce() { 120 $form_id = '_bp_as_nonce'; 120 $form_id = '_bp_as_nonce'; 121 121 $value = '_bp_as_nonce_' . bp_loggedin_user_id(); 122 122 … … 249 249 250 250 do_action( 'bp_activity_akismet_mark_as_ham', $activity, $source ); 251 } 251 } 252 252 253 253 /** … … 576 576 $interval = max( 1, absint( $interval ) ); 577 577 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 579 579 $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 ) ); 580 580 $activity_ids = $wpdb->get_col( $sql ); … … 585 585 } 586 586 } 587 ?>
Note: See TracChangeset
for help on using the changeset viewer.