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

Remove o2_Fragment::o2_make_clickable() to prevent stripping oEmbed tags. #218

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Feb 24, 2022

When a post contains a URL that's oEmbed'ed, on archive pages wp_kses_post() will strip out any <script>/<iframe>'s that the oEmbed specified.

This is caused by the o2_Fragment::o2_make_clickable().

I'm not understanding why this function is a thing, and removing it seems to not cause ill effects.

I've worked around the cause for now, so just filing this for my own/others reference running into the same issue.

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

Successfully merging this pull request may close these issues.

1 participant