Make WordPress Core

Ticket #16489: akismet.diff

File akismet.diff, 508 bytes (added by nacin, 14 years ago)

Possible Akismet hotfix.

  • akismet.php

     
    504504
    505505if ( $akismet_comment_nonce_option == 'true' || $akismet_comment_nonce_option == '' )
    506506        add_action( 'comment_form', 'akismet_add_comment_nonce' );
     507
     508if ( '3.0.5' == $wp_version ) {
     509        remove_filter( 'comment_text', 'wp_kses_data' );
     510        if ( is_admin() )
     511                add_filter( 'comment_text', 'wp_kses_post' );
     512}
     513 No newline at end of file