[wp-hackers] Akismet Plugin Changed?

Michael Clark dc153464a11bcf5aeb18180db28017fb.wp-hackers at planetmike.com
Wed Oct 21 11:12:21 UTC 2009


I am in the process of updating WordPress to 2.8.5 and noticed that 
the akismet.php in the wordpress.tar.gz has changed, but the version 
number is still 2.2.6. Under WP 2.8.4, there are 1,108 lines. In WP 
2.8.5 there are 1,118 lines. A diff shows:

403,409d402
< // filter handler used to return a spam result to pre_comment_approved
< function akismet_result_spam( $approved ) {
< 	// bump the counter here instead of when the filter is added 
to reduce the possibility of overcounting
< 	update_option( 'akismet_spam_count', 
get_option('akismet_spam_count') + 1 );
< 	return 'spam';
< }
<
433,434c426,427
< 		// akismet_spam_count will be incremented later by 
akismet_result_spam()
< 		add_filter('pre_comment_approved', 'akismet_result_spam');
---
>  		add_filter('pre_comment_approved', 
>create_function('$a', 'return \'spam\';'));
>  		update_option( 'akismet_spam_count', 
>get_option('akismet_spam_count') + 1 );
442,445c435,436
<
< 		if ( $post->post_type == 'post' && $diff > 30 && 
get_option( 'akismet_discard_month' ) == 'true' ) {
< 			// akismet_result_spam() won't be called so 
bump the counter here
< 			update_option( 'akismet_spam_count', 
get_option('akismet_spam_count') + 1 );
---
>
>  		if ( $post->post_type == 'post' && $diff > 30 && 
>get_option( 'akismet_discard_month' ) == 'true' )
447d437
< 		}

The MD5 hash of the wp284 is:
e6d80085b5064047b7fb85b19cb9aa78  wp-content/plugins/akismet/akismet.php

And of the "new" version is:
456e43efa8df773bc6ed625f28f2a303  wp-content/plugins/akismet/akismet.php


Should the Akismet version be changed, assuming this is a valid 
update to akismet.php? Mike


-- 

Michael Clark
http://www.PlanetMike.com

Listen to Christmas music 24 hours a day 7 days a week:
http://www.ChristmasMusic247.com

"Injustice anywhere is a threat to justice everywhere."
  - Martin Luther King Jr.


More information about the wp-hackers mailing list