From 2c92daaae643eebfdde593d85f21b2e72dd1eebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Mon, 4 Feb 2019 13:25:40 +0100 Subject: [PATCH] Using addQueryArgs to generate Manage All Reusable Blocks link (#13653) * feat: Use addQueryArgs to generate Manage All Reusable Blocks link * feat: Use addQueryArgs to generate Manage All Reusable Blocks link (forgotten file) * feat: Use addQueryArgs to generate Manage All Reusable Blocks link * fix: Import missing addQueryArgs method * chore: Update package-lock after run npm@6.7 install --- packages/edit-post/src/plugins/index.js | 3 ++- packages/editor/src/components/inserter/menu.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/src/plugins/index.js b/packages/edit-post/src/plugins/index.js index 34db5f51dd1a14..05a079db4738f2 100644 --- a/packages/edit-post/src/plugins/index.js +++ b/packages/edit-post/src/plugins/index.js @@ -5,6 +5,7 @@ import { MenuItem } from '@wordpress/components'; import { Fragment } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { registerPlugin } from '@wordpress/plugins'; +import { addQueryArgs } from '@wordpress/url'; /** * Internal dependencies @@ -22,7 +23,7 @@ registerPlugin( 'edit-post', { { __( 'Manage All Reusable Blocks' ) } diff --git a/packages/editor/src/components/inserter/menu.js b/packages/editor/src/components/inserter/menu.js index 0f5ebb437f9e16..7fb3cb2ffdca6d 100644 --- a/packages/editor/src/components/inserter/menu.js +++ b/packages/editor/src/components/inserter/menu.js @@ -32,6 +32,7 @@ import { import { withDispatch, withSelect } from '@wordpress/data'; import { withInstanceId, compose, withSafeTimeout } from '@wordpress/compose'; import { LEFT, RIGHT, UP, DOWN, BACKSPACE, ENTER } from '@wordpress/keycodes'; +import { addQueryArgs } from '@wordpress/url'; /** * Internal dependencies @@ -323,7 +324,7 @@ export class InserterMenu extends Component { { __( 'Manage All Reusable Blocks' ) }