From b0f6ad81abe1225f594938f2e1df9027bcca9def Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 20 Mar 2024 13:55:59 +0100 Subject: [PATCH] Small fix --- .../block-settings-menu/plugin-block-settings-menu-item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/block-settings-menu/plugin-block-settings-menu-item.js b/packages/editor/src/components/block-settings-menu/plugin-block-settings-menu-item.js index 322aa07db80f86..59c9e9c32d4a4b 100644 --- a/packages/editor/src/components/block-settings-menu/plugin-block-settings-menu-item.js +++ b/packages/editor/src/components/block-settings-menu/plugin-block-settings-menu-item.js @@ -38,7 +38,7 @@ const shouldRenderItem = ( selectedBlocks, allowedBlocks ) => * ```js * // Using ES5 syntax * var __ = wp.i18n.__; - * var PluginBlockSettingsMenuItem = wp.editPost.PluginBlockSettingsMenuItem; + * var PluginBlockSettingsMenuItem = wp.editor.PluginBlockSettingsMenuItem; * * function doOnClick(){ * // To be called when the user clicks the menu item. @@ -61,7 +61,7 @@ const shouldRenderItem = ( selectedBlocks, allowedBlocks ) => * ```jsx * // Using ESNext syntax * import { __ } from '@wordpress/i18n'; - * import { PluginBlockSettingsMenuItem } from '@wordpress/edit-post'; + * import { PluginBlockSettingsMenuItem } from '@wordpress/editor'; * * const doOnClick = ( ) => { * // To be called when the user clicks the menu item.