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

Switch video block to embed if the URL should be handled by embed #11410

Merged
merged 1 commit into from
Nov 4, 2018

Conversation

notnownikki
Copy link
Member

Description

Fixes: #6824

If a YouTube URL is used with a video block, it should switch to an embed block.

How has this been tested?

Try to add a YouTube video to a post using a Video block.

Types of changes

New feature

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@Soean Soean added the [Block] Video Affects the Video Block label Nov 2, 2018
@notnownikki notnownikki requested review from karmatosed, mtias and a team November 2, 2018 14:40
@mtias mtias added this to the 4.3 milestone Nov 2, 2018
Copy link
Member

@Soean Soean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great!

  • Tested with Vimeo and Youtube
  • URLs to files like .mp4 still work
  • Uploading and Media Library also work

@mtias mtias added the [Block] Embed Affects the Embed Block label Nov 2, 2018
Copy link
Member

@karmatosed karmatosed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected and is awesome thanks @notnownikki!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block [Block] Video Affects the Video Block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants