diff --git a/editor/blocks/image/index.js b/editor/blocks/image/index.js index 4a1fd625303ff8..14346ec353ef4f 100644 --- a/editor/blocks/image/index.js +++ b/editor/blocks/image/index.js @@ -9,17 +9,17 @@ wp.blocks.registerBlock( 'core/image', { category: 'common', attributes: { - src: attr( 'img', 'src' ), + url: attr( 'img', 'src' ), alt: attr( 'img', 'alt' ), caption: html( 'figcaption' ) }, edit( { attributes, isSelected, setAttributes } ) { - const { src, alt, caption } = attributes; + const { url, alt, caption } = attributes; return (
- { + { { caption || isSelected ? ( - { + { { caption ? (
) : null }