Ticket #20986: 20986.patch
| File 20986.patch, 679 bytes (added by maxcutler, 11 months ago) |
|---|
-
wp-includes/class-IXR.php
369 369 { 370 370 if (!$data) { 371 371 if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] !== 'POST') { 372 header('Content-Type: text/plain'); // merged from WP #9093 372 header("HTTP/1.1 405 Method Not Allowed"); 373 header('Allow: POST'); 374 header('Content-Type: text/plain'); // merged from WP #9093 373 375 die('XML-RPC server accepts POST requests only.'); 374 376 } 375 377
