From ec068b89b5f91e89bb3423d34410c44d9572bf21 Mon Sep 17 00:00:00 2001 From: Tom de Visser <118618474+tomdevisser@users.noreply.github.com> Date: Tue, 28 Mar 2023 23:07:24 +0200 Subject: [PATCH] Update help label for Image and Media & Text blocks (#48478) * Changes image size description, as it causes confusion Right now this setting causes confusion as it doesn't change the visual size, but the image dimensions, see #48395. * Added the copy to the Image block as well * Fix typo and make copy shorter * Update help labels for consistency --------- Co-authored-by: Rich Tabor --- packages/block-library/src/image/image.js | 3 +++ packages/block-library/src/media-text/edit.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index 090ae83fe50ab9..7bc7fc0594aa82 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -434,6 +434,9 @@ export default function Image( { isResizable={ isResizable } imageWidth={ naturalWidth } imageHeight={ naturalHeight } + imageSizeHelp={ __( + 'Select the size of the source image.' + ) } /> diff --git a/packages/block-library/src/media-text/edit.js b/packages/block-library/src/media-text/edit.js index 9df9d0c7a90c97..8472de229f7acd 100644 --- a/packages/block-library/src/media-text/edit.js +++ b/packages/block-library/src/media-text/edit.js @@ -291,7 +291,9 @@ function MediaTextEdit( { attributes, isSelected, setAttributes, clientId } ) { slug={ mediaSizeSlug } imageSizeOptions={ imageSizeOptions } isResizable={ false } - imageSizeHelp={ __( 'Select which image size to load.' ) } + imageSizeHelp={ __( + 'Select the size of the source image.' + ) } /> ) } { mediaUrl && (