Skip to:
Content

bbPress.org

Changeset 4091


Ignore:
Timestamp:
07/17/2012 03:37:32 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Akismet:

  • Check response before assigning value.
  • Fix bug with Akismet request faliing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/bbp-includes/bbp-extend-akismet.php

    r4042 r4091  
    394394
    395395        // Check the high-speed cam
    396         $post_data['bbp_akismet_result'] = $response[1];
     396        if ( !empty( $response[1] ) && ! is_wp_error( $response[1] ) )
     397            $post_data['bbp_akismet_result'] = $response[1];
     398        else
     399            $post_data['bbp_akismet_result'] = 'false';
    397400
    398401        // This is ham
Note: See TracChangeset for help on using the changeset viewer.