Skip to content

Commit

Permalink
Don't show 'View post' if slug is not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jul 1, 2022
1 parent 3bc218f commit f3de20f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/editor/src/components/post-url/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ export default function PostURL( { onClose } ) {
} }
/>
) }
<h3 className="editor-post-url__link-label">
{ viewPostLabel ?? __( 'View post' ) }
</h3>
{ isEditable && (
<h3 className="editor-post-url__link-label">
{ viewPostLabel ?? __( 'View post' ) }
</h3>
) }
<p>
<ExternalLink
className="editor-post-url__link"
Expand Down

0 comments on commit f3de20f

Please sign in to comment.