Ticket #6594: 6594.01.patch
| File 6594.01.patch, 1.4 KB (added by , 9 years ago) |
|---|
-
src/bp-activity/classes/class-bp-akismet.php
414 414 415 415 if ( 416 416 Akismet::allow_discard() && 417 ! empty( $activity_data[' bp_as_result_headers']['X-akismet-pro-tip'] ) &&418 $activity_data['bp_as_result_headers']['X-akismet-pro-tip'] === 'discard'417 ! empty( $activity_data['akismet_pro_tip'] ) && 418 'discard' === $activity_data['akismet_pro_tip'] 419 419 ) { 420 420 // If this is so spammy it's not worth your time, let's just delete it. 421 421 if ( $activity->type === 'activity_comment' ) { … … 559 559 $response = Akismet::http_post( $query_string, $path ); 560 560 remove_filter( 'akismet_ua', array( $this, 'buddypress_ua' ) ); 561 561 562 $activity_data['bp_as_result_headers'] = array(); 563 $activity_data['bp_as_result'] = ''; 564 565 // Get the response. 566 if ( ! empty( $response[1] ) && ! is_wp_error( $response[1] ) ) { 567 $activity_data['bp_as_result_headers'] = $response[0]; 568 $activity_data['bp_as_result'] = $response[1]; 562 // Save response data. 563 $activity_data['bp_as_result'] = $response[1]; 564 if ( isset( $response[0]['x-akismet-pro-tip'] ) ) { 565 $activity_data['akismet_pro_tip'] = $response[0]['x-akismet-pro-tip']; 569 566 } 570 567 571 568 // Perform a daily tidy up.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)