Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oEmbed Discovery Endpoints #38

Open
rickalee opened this issue Oct 22, 2018 · 0 comments
Open

oEmbed Discovery Endpoints #38

rickalee opened this issue Oct 22, 2018 · 0 comments

Comments

@rickalee
Copy link

Hi team,

This appears to be too strict and I believe we need to whitelist /wp-json/oembed/* for post embeds to work.

if ( 'all' === $restrict && ! user_can_access_rest_api() ) {

This snippet seems like a good opportunity to add filterable whitelist of paths as well.
https://snippets.khromov.se/disable-rest-api-for-anonymous-users/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant