Skip to:
Content

bbPress.org

Changeset 3377


Ignore:
Timestamp:
07/25/2011 03:38:53 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Revert r3369.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-plugins/akismet.php

    r3369 r3377  
    1414$bb_ksd_api_port = 80;
    1515$bb_ksd_user_agent = 'bbPress/' . bb_get_option( 'version' ) . ' | bbAkismet/'. bb_get_option( 'version' );
    16 
    17 /**
    18  * Allow Akismet key to be set globally
    19  *
    20  * The 'WPCOM_API_KEY' constant is used in the Akismet plugin for WordPress.
    21  * We're using it here to allow for simple global Akismet usage anywhere in the
    22  * stack, provided it's set before bb_get_option( 'akismet_key' ) is called.
    23  *
    24  * @package bbPress
    25  * @subpackage Akismet
    26  * @since 1.1
    27  *
    28  * @param string $key Optional | The key from bb_get_option( 'akismet_key' )
    29  * @uses apply_filters() Allow global key to be filtered
    30  *
    31  * @return string Filtered $key
    32  */
    33 function bb_akismet_global_key( $key = false ) {
    34     if ( defined( 'WPCOM_API_KEY' ) )
    35         $key = constant( 'WPCOM_API_KEY' );
    36 
    37     return apply_filters( 'bb_akismet_global_key', $key );
    38 }
    39 add_filter( 'bb_pre_get_option_akismet_key', 'bb_akismet_global_key' );
    4016
    4117function bb_akismet_verify_key( $key )
Note: See TracChangeset for help on using the changeset viewer.