From 04c0ea207efda81d98963c10e09c3c21705212fe Mon Sep 17 00:00:00 2001 From: Matthew Riley MacPherson Date: Tue, 26 Jun 2018 11:54:51 +0100 Subject: [PATCH] fix: Show permalink editor in editor (#7494) * fix: Show permalink editor in editor (fix #7467) * Use getCurrentPost() to get the link --- editor/components/post-permalink/index.js | 19 ++++++++++++++----- editor/store/selectors.js | 11 ----------- editor/store/test/selectors.js | 21 --------------------- 3 files changed, 14 insertions(+), 37 deletions(-) diff --git a/editor/components/post-permalink/index.js b/editor/components/post-permalink/index.js index b1ba0dec54c96f..e81302a486cdc1 100644 --- a/editor/components/post-permalink/index.js +++ b/editor/components/post-permalink/index.js @@ -56,11 +56,11 @@ class PostPermalink extends Component { } render() { - const { isNew, previewLink, isEditable, samplePermalink, isPublished } = this.props; + const { isNew, postLink, isEditable, samplePermalink, isPublished } = this.props; const { isCopied, isEditingPermalink } = this.state; const ariaLabel = isCopied ? __( 'Permalink copied' ) : __( 'Copy the permalink' ); - if ( isNew || ! previewLink ) { + if ( isNew || ! postLink ) { return null; } @@ -80,7 +80,7 @@ class PostPermalink extends Component { { ! isEditingPermalink &&