Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Image block: Hide Size options when Image object is undefined #1669
This PR fixes point 3 of #1593
When the image object is not present, the Image Size option won't be present in the Image Options.
The Image object is fetched on a network call for images stored in the WP Media Library. For images added via link, this object is never fetched.
Other cause of the object being missing is network call errors.
With this change we are looking to avoid the case when the ImageSize is displayed in the UI, but it does nothing.
Update release notes: