[wp-trac] [WordPress Trac] #43701: Make the "read_private” cap accessible over the REST API
WordPress Trac
noreply at wordpress.org
Mon Oct 8 19:13:11 UTC 2018
#43701: Make the "read_private” cap accessible over the REST API
---------------------------------------------+-----------------------
Reporter: twoelevenjay | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: REST API | Version: 4.9.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------
Comment (by danielbachhuber):
+1 to `43701.2.diff` although I think it needs a refresh.
I grepped core to see if there was prior art for this exact conditional,
but I wasn't able to find an example. However, with this being said, the
visibility of a Post is also asserted with
`WP_REST_Posts_Controller->check_read_permission()`, so I feel reasonably
confident in this change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43701#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list