Skip to content

Commit

Permalink
fix: Show permalink editor in editor (fix #7467)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jun 22, 2018
1 parent b16a8b2 commit b7881ea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions editor/components/post-permalink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PostPermalink extends Component {
const { isCopied, isEditingPermalink } = this.state;
const ariaLabel = isCopied ? __( 'Permalink copied' ) : __( 'Copy the permalink' );

if ( isNew || ! previewLink ) {
if ( isNew ) {
return null;
}

Expand Down Expand Up @@ -123,7 +123,13 @@ class PostPermalink extends Component {

export default compose( [
withSelect( ( select ) => {
const { isEditedPostNew, isPermalinkEditable, getEditedPostPreviewLink, getPermalink, isCurrentPostPublished } = select( 'core/editor' );
const {
isEditedPostNew,
isPermalinkEditable,
getEditedPostPreviewLink,
getPermalink,
isCurrentPostPublished,
} = select( 'core/editor' );
return {
isNew: isEditedPostNew(),
previewLink: getEditedPostPreviewLink(),
Expand Down

0 comments on commit b7881ea

Please sign in to comment.