Changeset 1385 for trunk/bb-plugins/akismet.php
- Timestamp:
- 03/30/2008 10:31:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/bb-plugins/akismet.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-plugins/akismet.php
r1346 r1385 80 80 81 81 function 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; 83 83 $blog = urlencode( bb_get_option('uri') ); 84 84 $response = bb_ksd_http_post("key=$key&blog=$blog", 'rest.akismet.com', '/1.1/verify-key', $bb_ksd_api_port); … … 269 269 270 270 function bb_ksd_admin_page() { 271 global $bb_ current_submenu, $bb_posts, $page;271 global $bb_posts, $page; 272 272 if ( !bb_akismet_verify_key( bb_get_option( 'akismet_key' ) ) ) : ?> 273 273 <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.