Ticket #3797: wp-comments-post.php-patch-2.1.patch
| File wp-comments-post.php-patch-2.1.patch, 443 bytes (added by MikeLittle, 5 years ago) |
|---|
-
wp-comments-post.php
1 1 <?php 2 if ($_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 } 2 8 require( dirname(__FILE__) . '/wp-config.php' ); 3 9 4 10 nocache_headers();
