Skip to content

Commit

Permalink
Use the correct import!
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Nov 28, 2022
1 parent c779567 commit 168c62b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { escapeHtml } from '@wordpress/escape-html';
import { escapeHTML } from '@wordpress/escape-html';
import { safeDecodeURI } from '@wordpress/url';

/**
Expand Down Expand Up @@ -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( '-', '_' );
Expand Down

0 comments on commit 168c62b

Please sign in to comment.