方法一 -- 只有效了半天就被破解了,垃圾又泛滥,就有了方法二(见2楼) :
将根目录下的文件wp-comments-post.php的第20行: $comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : 0; 改为: $comment_post_ID = isset($_POST['comment_post_ID_iblog']) ? (int) $_POST['comment_post_ID_iblog'] : 0; 将wp-includes目录下的文件comment-template.php的第1144行: $result = "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n"; 改为: $result = "<input type='hidden' name='comment_post_ID_iblog' value='$id' id='comment_post_ID' />\n";
将根目录下的文件“wp-comments-post.php”的第20行:
$comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : 0;
改为:
if ($_POST['yanzhengma'] == ’919191′) {
$comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID_iblog'] : 0;
}
在目录“ wp-includes ”下的文件 “ wp-comments-post.php ”的第1548行“ <?php echo $args['comment_notes_after']; ?> “下添加如下代码:
<p>Put “919191″ here, then click “Post Comment” button to submit.
<input type=’text’ name=’yanzhengma’ id=’yanzhengma’ /></p>