Skip to content

Commit

Permalink
Image: Allow authors to select image sizes from dropdown (WordPress#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and jostnes committed Mar 23, 2022
1 parent 3dc1f9f commit 03da7b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ export default function Image( {
);
const multiSelectedClientIds = getMultiSelectedBlockClientIds();
return {
image: id && isSelected ? getMedia( id ) : null,
image:
id && isSelected
? getMedia( id, { context: 'view' } )
: null,
multiImageSelection:
multiSelectedClientIds.length &&
multiSelectedClientIds.every(
Expand Down

0 comments on commit 03da7b7

Please sign in to comment.