[wp-trac] [WordPress Trac] #52958: The XML-RPC endpoint returns 404 rather than 200

WordPress Trac noreply at wordpress.org
Fri Apr 9 14:35:06 UTC 2021


#52958: The XML-RPC endpoint returns 404 rather than 200
--------------------------------------+---------------------
 Reporter:  ariskataoka               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.7.2
Component:  XML-RPC                   |     Version:  5.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by ariskataoka):

 Hi there!

 Thanks for accepting this report. I've added a patch on Github (link
 above).


 {{{
 When the XML-RPC is disabled, the HTTP status code should be according to
 the error code,
 when it's enabled, it should return 200 as per the XML-RPC specs.

 This PR:

 Overrides the IXR-server error method, implementing the HTTP
 status code logic based on the XML-RPC $enabled attribute;

 Moves the logic that verifies if the XML-RPC is enabled to its own method;

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52958#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list