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.
Contributors should be able to query for unpublished posts #1892
In the WordPress admin, when I'm logged in as a Contributor, I can see the titles and other metadata of drafts in progress:
When I GET /wp/v2/posts status=draft as a contributor, drafts in progress from other authors aren't included in the response because WP_REST_Posts_Controller::check_read_permission() filters them out.
Importantly: Contributors shouldn't be able to see the body content of drafts in progress by other authors — only the metadata expected to be visible in the Manage Posts list table.
In the WordPress admin, when I'm logged in as a Contributor, I can see the titles and other metadata of drafts in progress:
When I
GET /wp/v2/posts status=draftas a contributor, drafts in progress from other authors aren't included in the response becauseWP_REST_Posts_Controller::check_read_permission()filters them out.Importantly: Contributors shouldn't be able to see the body content of drafts in progress by other authors — only the metadata expected to be visible in the Manage Posts list table.
Discovered in #1886