Make WordPress Core

Ticket #3797: wp-comments-post.php-patch-trunk.patch

File wp-comments-post.php-patch-trunk.patch, 443 bytes (added by MikeLittle, 19 years ago)

Patch (against trunk) to fix this issue.

  • wp-comments-post.php

     
    11<?php
     2if ($_SERVER["REQUEST_METHOD"] != "POST") {
     3    header('Allow: POST');
     4        header("HTTP/1.1 405 Method Not Allowed");
     5        header("Content-type: text/plain");
     6    exit;
     7}
    28require( dirname(__FILE__) . '/wp-config.php' );
    39
    410nocache_headers();