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

Fix embed #173

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Fix embed #173

merged 1 commit into from
Oct 25, 2022

Conversation

winkelco
Copy link
Contributor

There is a problem rendering youtube embeds (I imagine others too)
Screen Shot 2022-10-25 at 12 33 34 AM

The problem is that the variable $this->blockName === 'core-embed' is being compared but now it seems to be called 'core-embed/youtube'
Screen Shot 2022-10-25 at 12 28 37 AM

the solution is to use strpos to check if the word embed exists
Screen Shot 2022-10-25 at 12 32 45 AM

this is the result
Screen Shot 2022-10-25 at 12 34 05 AM

@mauricewijnia
Copy link
Member

Ah perfect, thanks for the PR!

@mauricewijnia mauricewijnia merged commit 3efbadd into VanOns:main Oct 25, 2022
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.

None yet

2 participants