Skip to content

Commit

Permalink
Note about image sizes in MediaUpload::onSelect (WordPress#64616)
Browse files Browse the repository at this point in the history
Document that not all image sizes are available when an image has been selected in MediaUpload.

Co-authored-by: cweiske <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored and bph committed Aug 31, 2024
1 parent 74422d0 commit 5d10aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-editor/src/components/media-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Callback called when the media modal is closed after media is selected.

This is called subsequent to `onClose` when media is selected. The selected media are passed as an argument.

The `image.sizes.full` resolution does always exist. Other defined sizes are only available when the image is larger and thus could be scaled down.

- Type: `Function`
- Required: Yes
- Platform: Web | Mobile
Expand Down

0 comments on commit 5d10aa4

Please sign in to comment.