Skip to content

Commit

Permalink
Fix to registerBlockType
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Jun 5, 2017
1 parent 0aee746 commit c3cbce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/library/gallery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -51,7 +51,7 @@ function toggleAlignment( align ) {
};
}

registerBlock( 'core/gallery', {
registerBlockType( 'core/gallery', {
title: wp.i18n.__( 'Gallery' ),
icon: 'format-gallery',
category: 'common',
Expand Down
2 changes: 1 addition & 1 deletion blocks/test/fixtures/core-gallery.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"uid": "_uid_0",
"blockType": "core/gallery",
"name": "core/gallery",
"attributes": {
"images": [
{ "url": "https://cldup.com/uuUqE_dXzy.jpg", "alt": "title" },
Expand Down

0 comments on commit c3cbce6

Please sign in to comment.