Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Quick solution that should do the job for dummy bots.
- function html_is_bad( $approved , $commentdata )
- {
- if($commentdata['comment_content']!==strip_tags($commentdata['comment_content']))
- return 'spam';
- return $approved;
- }
- add_filter( 'pre_comment_approved' , 'html_is_bad' , '99', 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement