Ticket #20986: 20986.2.patch
| File 20986.2.patch, 658 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 status_header( 405 ); 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
