Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/30/2008 10:31:06 AM (18 years ago)
Author:
sambauers
Message:

Various optimisations and typo fixes - Fixes #842 - props momo360modena

File:
1 edited

Legend:

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

    r1346 r1385  
    8080
    8181function bb_akismet_verify_key( $key ) {
    82     global $bb_ksd_pre_post_status, $bb_ksd_api_host, $bb_ksd_api_port;
     82    global $bb_ksd_api_port;
    8383    $blog = urlencode( bb_get_option('uri') );
    8484    $response = bb_ksd_http_post("key=$key&blog=$blog", 'rest.akismet.com', '/1.1/verify-key', $bb_ksd_api_port);
     
    269269
    270270function bb_ksd_admin_page() {
    271     global $bb_current_submenu, $bb_posts, $page;
     271    global $bb_posts, $page;
    272272    if ( !bb_akismet_verify_key( bb_get_option( 'akismet_key' ) ) ) : ?>
    273273<div class="error"><p><?php printf(__('The API key you have specified is invalid.  Please double check the <strong>Akismet Key</strong> set in <a href="%s">Akismet configuration</a>.  If you don\'t have an API key yet, you can get one at <a href="%s">WordPress.com</a>.'), 'admin-base.php?plugin=bb_ksd_configuration_page', 'http://wordpress.com/api-keys/'); ?></p></div>
Note: See TracChangeset for help on using the changeset viewer.