[wp-trac] [WordPress Trac] #42828: Hard-coded 403 status in REST response should use `rest_authorization_required_code()`
WordPress Trac
noreply at wordpress.org
Sat Jan 6 19:28:46 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
--------------------------+--------------------------
Comment (by rachelbaker):
In [changeset:"42427"]:
{{{
#!CommitTicketReference repository="" revision="42427"
EST API: Adjust unit testes to expect a 401 status code in error responses
from permission callbacks when user is not authenticated.
Missed in [42421].
Merges [42423] to the 4.9 branch.
Fixes #42828.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42828#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list