From d22195effcd864d13cf25f5c0eff1d350173252b Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 22 Nov 2018 11:30:24 +0100 Subject: [PATCH] Update index.js The wp.editor.UrlInput component has been renamed to wp.editor.URLInput, as mentioned here: https://wordpress.org/gutenberg/handbook/reference/deprecated/ Old notation breaks the block when used with Gutenberg 4.5.1 --- blocks/11-url-input/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/11-url-input/index.js b/blocks/11-url-input/index.js index 37838cfa..805fb801 100755 --- a/blocks/11-url-input/index.js +++ b/blocks/11-url-input/index.js @@ -13,7 +13,7 @@ const { registerBlockType, } = wp.blocks; const { - UrlInput, + URLInput, } = wp.editor; const { IconButton, @@ -74,7 +74,7 @@ export default registerBlockType( {icon} - setAttributes( { url } ) }