Changeset 5829 for trunk/src/includes/extend/akismet.php
- Timestamp:
- 07/14/2015 12:46:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/akismet.php
r5828 r5829 397 397 398 398 // Key should not be ignored 399 if ( ! in_array( $key, $ignore ) && is_string( $value ) ) {399 if ( ! in_array( $key, $ignore ) && is_string( $value ) ) { 400 400 $post_data[$key] = $value; 401 401 … … 422 422 423 423 // Check the high-speed cam 424 if ( ! empty( $response[1] ) ) {424 if ( ! empty( $response[1] ) ) { 425 425 $post_data['bbp_akismet_result'] = $response[1]; 426 426 } else { … … 462 462 463 463 // Set up Akismet last post data 464 if ( ! empty( $this->last_post ) ) {464 if ( ! empty( $this->last_post ) ) { 465 465 $as_submitted = $this->last_post['bbp_post_as_submitted']; 466 466 } … … 468 468 // wp_insert_post() might be called in other contexts. Ensure this is 469 469 // the same topic/reply as was checked by BBP_Akismet::check_post() 470 if ( is_object( $_post ) && ! empty( $this->last_post ) && is_array( $as_submitted ) ) {470 if ( is_object( $_post ) && ! empty( $this->last_post ) && is_array( $as_submitted ) ) { 471 471 472 472 // Get user data … … 612 612 613 613 // Save the terms for later in case the reply gets hammed 614 if ( ! empty( $terms ) ) {614 if ( ! empty( $terms ) ) { 615 615 update_post_meta( $reply_id, '_bbp_akismet_spam_terms', $terms ); 616 616 } … … 649 649 650 650 // Use specific IP (if provided) 651 if ( ! empty( $ip ) && long2ip( ip2long( $ip ) ) ) {651 if ( ! empty( $ip ) && long2ip( ip2long( $ip ) ) ) { 652 652 $http_host = $ip; 653 653 } … … 758 758 <div class="akismet-history" style="margin: 13px 0;"> 759 759 760 <?php if ( ! empty( $history ) ) : ?>760 <?php if ( ! empty( $history ) ) : ?> 761 761 762 762 <table>
Note: See TracChangeset
for help on using the changeset viewer.