Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2011 09:55:10 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Check for empty Akismet globals and run akismet_init() if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-akismet.php

    r5280 r5281  
    418418        global $akismet_api_host, $akismet_api_port;
    419419
     420        // Check that host and port are set, if not, set them
     421        if ( function_exists( 'akismet_init' ) && ( empty( $akismet_api_host ) || empty( $akismet_api_port ) ) )
     422            akismet_init();
     423
    420424        $query_string = $path = $response = '';
    421425
Note: See TracChangeset for help on using the changeset viewer.