[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
Mon Dec 21 15:24:21 UTC 2020
#48213: The XML-RPC endpoint should return a more appropriate HTTP status code when
it's disabled
--------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: defect (bug) | Status: reviewing
Priority: low | Milestone: 5.7
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Comment (by johnbillion):
Thanks for the PR @ericmann . Adding the `status_header()` call inside
`IXR_Server::error()` makes sense as it allows for other errors to send a
status code.
Unfortunately several places in the IXR library use non-standard error
codes (eg. `-32300`) but these are safely ignored by `status_header()`.
I pushed some commits to your PR to remove the duplicate `status_header()`
calls.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48213#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list