From 5d10aa4863d7bb228619fe733433798c2c9b1ba8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 20 Aug 2024 09:01:25 +0200 Subject: [PATCH] Note about image sizes in MediaUpload::onSelect (#64616) Document that not all image sizes are available when an image has been selected in MediaUpload. Co-authored-by: cweiske Co-authored-by: Mamaduka --- packages/block-editor/src/components/media-upload/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-editor/src/components/media-upload/README.md b/packages/block-editor/src/components/media-upload/README.md index 592d64e42f497d..27bbc93d8a2b65 100644 --- a/packages/block-editor/src/components/media-upload/README.md +++ b/packages/block-editor/src/components/media-upload/README.md @@ -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