Ticket #7894: akismet.patch
| File akismet.patch, 1.6 KB (added by , 18 years ago) |
|---|
-
akismet.php
2 2 /* 3 3 Plugin Name: Akismet 4 4 Plugin URI: http://akismet.com/ 5 Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use it. You can review the spam it catches under "Comments." To show off your Akismet stats just put <code><?php akismet_counter(); ? ></code> in your template. See also: <a href="http://wordpress.org/extend/plugins/stats/">WP Stats plugin</a>.6 Version: 2.1. 85 Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use it. You can review the spam it catches under "Comments." To show off your Akismet stats just put <code><?php akismet_counter(); ?></code> in your template. See also: <a href="http://wordpress.org/extend/plugins/stats/">WP Stats plugin</a>. 6 Version: 2.1.9 7 7 Author: Matt Mullenweg 8 8 Author URI: http://ma.tt/ 9 9 */ … … 263 263 add_action('edit_comment', 'akismet_submit_spam_comment'); 264 264 add_action('preprocess_comment', 'akismet_auto_check_comment', 1); 265 265 266 function akismet_spamtoham( $comment ) { akismet_submit_nonspam_comment( $comment->comment_ID ); } 267 add_filter( 'comment_spam_to_approved', 'akismet_spamtoham' ); 268 266 269 // Total spam in queue 267 270 // get_option( 'akismet_spam_count' ) is the total caught ever 268 271 function akismet_spam_count( $type = false ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)