-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Video embeds fail if embed block is converted to a reusable block #4483
Comments
Works as expected on master / v3.2 |
I have experienced this same issue. I added a Youtube block in a test post, and the video was displayed on the frontend. As soon as I converted the block to a Reusable Block, the video stopped displaying on the frontend, leaving just the video URL. |
@ajitbohra The issue seems to be back. Can we reopen this thread? |
@ajitbohra Bringing up @davoraltman and @thabotswana comment, this bug seems to be back (for internal reference, affected site 1999851-zen ). Can you re-open this issue? Otherwise we can create a new bug report, but would be duplicating info that can already be found here. |
@iamgabrielma @davoraltman was able to reproduce, reopening issue. |
Just to add to this, after adding a reusable block of almost anything, you need to convert it back to a regular block in order for it to function properly. I found this out on my own site after creating a reusable block for a "more" tag combined with protected content. I also tested it on my test site with the youtube code and had the same behaviour. I'll let the user know about this work around for now. |
The issue seems to be in core. I've created a ticket and attached a possible patch for this issue in the core. Please see - https://core.trac.wordpress.org/ticket/48034 @ajitbohra @tanjoymor @thabotswana @davoraltman @iamgabrielma @niranjan-uma-shankar - Please check if you have time. Thanks. |
User reported this issue in 18596347-hc - do we have an update on this? |
@donmhico shared an explanation of what's happening here over in Trac. Since this will need to be fixed in Core, I'm closing this issue in favour of https://core.trac.wordpress.org/ticket/48034. |
Change of plan here. As mentioned in #21043 (comment), changing the order of when the |
Issue Overview
Embedding youtube videos works well. However, if you convert the block to a reusable block, the youtube player no longer gets embedded in the post. In the editor, the embed continues to show the player, though the play button doesn't work anymore.
Steps to Reproduce (for bugs)
Expected Behavior
The video embed should render in posts, even if it's a reusable block.
Screenshots
The text was updated successfully, but these errors were encountered: