From e51306e627a0247afdcff924d1e073cdd8947d27 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 22 Jun 2017 14:17:23 +0100 Subject: [PATCH] Use imports instead of the global `wp` variable --- blocks/api/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/api/query.js b/blocks/api/query.js index cb448a13ea1194..c369164b335db3 100644 --- a/blocks/api/query.js +++ b/blocks/api/query.js @@ -58,6 +58,6 @@ export const node = withKnownMatcherFlag( ( selector ) => { match = domNode.querySelector( selector ); } - return nodeToReact( match, wp.element.createElement ); + return nodeToReact( match, createElement ); }; } );