From c7c4e7a3c951978f547f9f5394d2f075472ca44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Thu, 21 Feb 2019 11:08:38 +0100 Subject: [PATCH] Update docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md Co-Authored-By: nosolosw --- .../developers/tutorials/metabox/meta-block-3-add.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md b/docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md index ae4a5f583e2905..e1e6749c17ff76 100644 --- a/docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md +++ b/docs/designers-developers/developers/tutorials/metabox/meta-block-3-add.md @@ -61,7 +61,7 @@ Add this code to your JavaScript file (this tutorial will call the file `myguten {% ESNext %} ```jsx -var registerBlockType = wp.blocks.registerBlockType; +const { registerBlockType } = wp.blocks; const { TextControl } = wp.components; registerBlockType( 'myguten/meta-block', {