From 168c62b7be2d640c1d6d853f1107a54bfe6041f8 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 28 Nov 2022 17:36:24 +0000 Subject: [PATCH] Use the correct import! --- .../src/components/off-canvas-editor/update-attributes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/off-canvas-editor/update-attributes.js b/packages/block-editor/src/components/off-canvas-editor/update-attributes.js index 9f982abc091fd0..5133cae3878338 100644 --- a/packages/block-editor/src/components/off-canvas-editor/update-attributes.js +++ b/packages/block-editor/src/components/off-canvas-editor/update-attributes.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { escapeHtml } from '@wordpress/escape-html'; +import { escapeHTML } from '@wordpress/escape-html'; import { safeDecodeURI } from '@wordpress/url'; /** @@ -74,8 +74,8 @@ export const updateAttributes = ( // - https://github.com/WordPress/gutenberg/pull/41063 // - https://github.com/WordPress/gutenberg/pull/18617. const label = useNewLabel - ? escapeHtml( newLabel ) - : originalLabel || escapeHtml( newUrlWithoutHttp ); + ? escapeHTML( newLabel ) + : originalLabel || escapeHTML( newUrlWithoutHttp ); // In https://github.com/WordPress/gutenberg/pull/24670 we decided to use "tag" in favor of "post_tag" const type = newType === 'post_tag' ? 'tag' : newType.replace( '-', '_' );