diff --git a/blocks/library/gallery/index.js b/blocks/library/gallery/index.js index a165e7b948400d..1c2a6d6d31a290 100644 --- a/blocks/library/gallery/index.js +++ b/blocks/library/gallery/index.js @@ -2,7 +2,7 @@ * Internal dependencies */ import './style.scss'; -import { registerBlock, query as hpq } from '../../api'; +import { registerBlockType, query as hpq } from '../../api'; import Placeholder from 'components/placeholder'; import MediaUploadButton from '../../media-upload-button'; @@ -51,7 +51,7 @@ function toggleAlignment( align ) { }; } -registerBlock( 'core/gallery', { +registerBlockType( 'core/gallery', { title: wp.i18n.__( 'Gallery' ), icon: 'format-gallery', category: 'common', diff --git a/blocks/test/fixtures/core-gallery.json b/blocks/test/fixtures/core-gallery.json index 460b572d6c2516..10cd14286ac919 100644 --- a/blocks/test/fixtures/core-gallery.json +++ b/blocks/test/fixtures/core-gallery.json @@ -1,7 +1,7 @@ [ { "uid": "_uid_0", - "blockType": "core/gallery", + "name": "core/gallery", "attributes": { "images": [ { "url": "https://cldup.com/uuUqE_dXzy.jpg", "alt": "title" },