From 3293ee7bfb9194220a6f1b629aef5fa9aacc4191 Mon Sep 17 00:00:00 2001 From: Jameel Moses Date: Sat, 17 Nov 2018 16:26:44 -0500 Subject: [PATCH] Fixes #11949: Error: The block "xxx" can have a maximum of 3 keywords. --- packages/blocks/src/api/registration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/blocks/src/api/registration.js b/packages/blocks/src/api/registration.js index a11c20c1e8b892..4d0f22ebee6bec 100644 --- a/packages/blocks/src/api/registration.js +++ b/packages/blocks/src/api/registration.js @@ -1,4 +1,4 @@ -/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ +/* eslint no-console: [ 'error', { allow: [ 'error', 'warn' ] } ] */ /** * External dependencies @@ -141,7 +141,7 @@ export function registerBlockType( name, settings ) { } if ( 'keywords' in settings && settings.keywords.length > 3 ) { - console.error( + console.warn( 'The block "' + name + '" can have a maximum of 3 keywords.' ); settings.keywords = settings.keywords.slice( 0, 3 );