Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/14/2015 12:46:38 AM (11 years ago)
Author:
johnjamesjacoby
Message:

I think this building should be condemned. There's serious metal fatigue in all the load-bearing members, the wiring is substandard, it's completely inadequate for our power needs, and the neighborhood is like a demilitarized zone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/akismet.php

    r5828 r5829  
    397397
    398398                        // Key should not be ignored
    399                         if ( !in_array( $key, $ignore ) && is_string( $value ) ) {
     399                        if ( ! in_array( $key, $ignore ) && is_string( $value ) ) {
    400400                                $post_data[$key] = $value;
    401401
     
    422422
    423423                // Check the high-speed cam
    424                 if ( !empty( $response[1] ) ) {
     424                if ( ! empty( $response[1] ) ) {
    425425                        $post_data['bbp_akismet_result'] = $response[1];
    426426                } else {
     
    462462
    463463                // Set up Akismet last post data
    464                 if ( !empty( $this->last_post ) ) {
     464                if ( ! empty( $this->last_post ) ) {
    465465                        $as_submitted = $this->last_post['bbp_post_as_submitted'];
    466466                }
     
    468468                // wp_insert_post() might be called in other contexts. Ensure this is
    469469                // 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 ) ) {
    471471
    472472                        // Get user data
     
    612612
    613613                // Save the terms for later in case the reply gets hammed
    614                 if ( !empty( $terms ) ) {
     614                if ( ! empty( $terms ) ) {
    615615                        update_post_meta( $reply_id, '_bbp_akismet_spam_terms', $terms );
    616616                }
     
    649649
    650650                // Use specific IP (if provided)
    651                 if ( !empty( $ip ) && long2ip( ip2long( $ip ) ) ) {
     651                if ( ! empty( $ip ) && long2ip( ip2long( $ip ) ) ) {
    652652                        $http_host = $ip;
    653653                }
     
    758758                <div class="akismet-history" style="margin: 13px 0;">
    759759
    760                         <?php if ( !empty( $history ) ) : ?>
     760                        <?php if ( ! empty( $history ) ) : ?>
    761761
    762762                                <table>
Note: See TracChangeset for help on using the changeset viewer.