Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only request the embed preview if we have a URL #9193
We were requesting a preview for URLs even if the URL hadn't been entered yet, so creating a new embed block resulted in an unneeded API call. This stops that.
How has this been tested?
Create a new embed block, check there are no API calls sent to the embed endpoints.
Types of changes
Aug 21, 2018
No worries! It's documented in https://github.com/WordPress/gutenberg/blob/master/docs/reference/repository-management.md#merging-pull-requests
A bot would be pretty cool though.