WordPress.org

Make WordPress Core

Ticket #20986: 20986.2.patch

File 20986.2.patch, 658 bytes (added by maxcutler, 22 months ago)
  • wp-includes/class-IXR.php

     
    369369    { 
    370370        if (!$data) { 
    371371            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 
    373375                die('XML-RPC server accepts POST requests only.'); 
    374376            } 
    375377