mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 18:18:01 +01:00
a787006298
Use the `rest_authorization_required_code()` function to return a 401 status code when a permission callback fails due to a user not being logged in. Props jaswrks. Fixes #42828. Built from https://develop.svn.wordpress.org/trunk@42421 git-svn-id: http://core.svn.wordpress.org/trunk@42252 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
endpoints | ||
fields | ||
class-wp-rest-request.php | ||
class-wp-rest-response.php | ||
class-wp-rest-server.php |