Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a problem rendering youtube embeds (I imagine others too)
![Screen Shot 2022-10-25 at 12 33 34 AM](https://user-images.githubusercontent.com/57962651/197691094-136af1a5-8b35-4fbf-8c38-0a08cfb936a0.png)
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](https://user-images.githubusercontent.com/57962651/197691302-65de6832-0375-444b-ac14-28b05a0ca631.png)
the solution is to use strpos to check if the word embed exists
![Screen Shot 2022-10-25 at 12 32 45 AM](https://user-images.githubusercontent.com/57962651/197691426-b10c4ae9-d32d-4da6-acd5-e045573aba09.png)
this is the result
![Screen Shot 2022-10-25 at 12 34 05 AM](https://user-images.githubusercontent.com/57962651/197691459-a1b4f541-d670-4096-8b42-d7e6111a013f.png)