From d78a00e1be5f20fe28b589253829e334c192952d Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 10 Nov 2020 23:38:37 -0300 Subject: [PATCH] moved __DEV__ flag to contact-info block availability decl only --- src/jetpack-editor-setup.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jetpack-editor-setup.js b/src/jetpack-editor-setup.js index 898d2ec9f6..dcc1e65c57 100644 --- a/src/jetpack-editor-setup.js +++ b/src/jetpack-editor-setup.js @@ -10,7 +10,7 @@ import { dispatch, select } from '@wordpress/data'; // When adding new blocks to this list please also consider updating ./block-support/supported-blocks.json const supportedJetpackBlocks = { 'contact-info': { - available: true, + available: __DEV__, }, story: { available: true, @@ -64,9 +64,7 @@ export default ( jetpackState ) => { } } ); - if ( __DEV__ ) { - require( '../jetpack/extensions/editor' ); - } + require( '../jetpack/extensions/editor' ); return jetpackData; };