
functionlianyue_comment_post($incoming_comment){global$user_level;if($user_level<7){//检测表单正确性if($_POST['name_key']!=wp_create_nonce('lianyue_key'.$incoming_comment['comment_post_ID'])&&strstr($_SERVER['PHP_SELF'],'wp-comments-post.php')){wp_die('Verifythattheinformationisincorrecterror');}}return($incoming_comment);}add_filter('preprocess_comment','lianyue_com...

functionlianyue_comment_post($incoming_comment){$http='/[href="|rel="nofollow"|http:\/\/|<\/a>]/u';if(preg_match($http,$incoming_comment['comment_content'])){wp_die("万恶的发贴机!");}return($incoming_comment);}add_filter('preprocess_comment','lianyue_comment_post');以上的代码不允许<a随便href="或者rel="nofollow"或者http://当然你也可以换成自己的代码也可以添加其他的代码也可以设置成必须包含指...