[wp-trac] [WordPress Trac] #43570: preview draft access denied html status code is 500 instead of 401
WordPress Trac
noreply at wordpress.org
Sun Jan 6 17:23:15 UTC 2019
#43570: preview draft access denied html status code is 500 instead of 401
-------------------------------+--------------------------
Reporter: graymouser | Owner: johnbillion
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.1
Component: Posts, Post Types | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+--------------------------
Changes (by ocean90):
* version: 4.9.4 => 2.7
* milestone: 5.0.3 => 5.1
Comment:
The response code can also be defined as the second argument of
`wp_die()`, see [30355]. Maybe `400` would be a better code since
authorisation isn't checked here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43570#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list