[wp-trac] [WordPress Trac] #42828: Hard-coded 403 status in REST response should use `rest_authorization_required_code()`
WordPress Trac
noreply at wordpress.org
Mon Jan 1 02:30:41 UTC 2018
#42828: Hard-coded 403 status in REST response should use
`rest_authorization_required_code()`
--------------------------+--------------------------
Reporter: jaswrks | Owner: rachelbaker
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9.2
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: commit | Focuses: rest-api
--------------------------+--------------------------
Changes (by rachelbaker):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"42423"]:
{{{
#!CommitTicketReference repository="" revision="42423"
REST API: Adjust unit testes to expect a 401 status code in error
responses from permission callbacks when user is not authenticated.
Missed in [42421].
Fixes #42828.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42828#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list