File tree 1 file changed +4
-2
lines changed
packages/block-library/src/navigation-link
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export const updateNavigationLinkBlockAttributes = (
236
236
237
237
const normalizedURL = url . replace ( / h t t p ( s ? ) : \/ \/ / gi, '' ) ;
238
238
239
- const label = decodeEntities ( title ) || originalLabel || normalizedURL ;
239
+ const label = title || originalLabel || normalizedURL ;
240
240
241
241
// In https://github.com/WordPress/gutenberg/pull/24670 we decided to use "tag" in favor of "post_tag"
242
242
const type = newType === 'post_tag' ? 'tag' : newType . replace ( '-' , '_' ) ;
@@ -793,7 +793,9 @@ export default function NavigationLinkEdit( {
793
793
< span >
794
794
{
795
795
/* Trim to avoid trailing white space when the placeholder text is not present */
796
- `${ label } ${ placeholderText } ` . trim ( )
796
+ `${ decodeEntities (
797
+ label
798
+ ) } ${ placeholderText } `. trim ( )
797
799
}
798
800
</ span >
799
801
< span className = "wp-block-navigation-link__missing_text-tooltip" >
You can’t perform that action at this time.
0 commit comments