[wp-trac] [WordPress Trac] #48213: The XML-RPC endpoint should return a more appropriate HTTP status code when it's disabled

WordPress Trac noreply at wordpress.org
Fri Oct 4 11:47:45 UTC 2019


#48213: The XML-RPC endpoint should return a more appropriate HTTP status code when
it's disabled
--------------------------+-----------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 When the XML-RPC endpoint is disabled via a false return value on the
 `xmlrpc_enabled` filter, a POST request to `/xmlrpc.php` receives an HTTP
 200 response code along with the error message.

 A more appropriate response code would be either 403 or 405, the latter of
 which mirrors the `IXR_Error` code used internally.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48213>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list