Restricted content is visible via the REST API
Closed this issue · 2 comments
mindctrl commented
We hook in the content filters on loop_start
, which doesn't run on REST requests.
Reported here: https://wordpress.org/support/topic/restricted-posts-not-hidden-from-rest-api/
I gave him a quick workaround, but we'll probably want to do something a little different to only run on REST requests instead of on init
.
ashleyfae commented
Works well! Merged.