Skip to content

Commit

Permalink
Restore createInterpolateElement after rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Sep 10, 2024
1 parent 17b1da4 commit 84fe3f6
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions packages/editor/src/components/post-url/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,21 @@ export default function PostURL( { onClose } ) {
<VStack spacing={ 3 }>
{ isEditable && (
<p className="editor-post-url__intro">
<span id={ postUrlSlugDescriptionId }>
{ __(
'Customize the last part of the Permalink.'
) }
</span>
<ExternalLink
href={ __(
'https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink'
) }
>
{ __( 'Learn more.' ) }
</ExternalLink>
{ createInterpolateElement(
__(
'<span>Customize the last part of the URL.</span> <a>Learn more.</a>'
),
{
span: <span id={ postUrlSlugDescriptionId } />,
a: (
<ExternalLink
href={ __(
'https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink'
) }
/>
),
}
) }
</p>
) }
<div>
Expand Down

0 comments on commit 84fe3f6

Please sign in to comment.