mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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