You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Move permissions check in Statuses controller to a get_item_permissions_check #2143
In WP_REST_Post_Statuses_Controller::prepare_item_for_response(), there's a permissions check that should instead be included in a get_item_permissions_check():
In
WP_REST_Post_Statuses_Controller::prepare_item_for_response(), there's a permissions check that should instead be included in aget_item_permissions_check():When we make this change, we should make sure there are tests covering that private statuses aren't exposed when getting a list of posts.