diff --git a/packages/editor/src/components/post-permalink/index.js b/packages/editor/src/components/post-permalink/index.js index 5a0f06e2f38beb..ade94e43f38bb7 100644 --- a/packages/editor/src/components/post-permalink/index.js +++ b/packages/editor/src/components/post-permalink/index.js @@ -160,10 +160,10 @@ class PostPermalink extends Component { export default compose( [ withSelect( ( select ) => { const { + isEditedPostNew, isPermalinkEditable, getCurrentPost, isCurrentPostPublished, - isCleanNewPost, isSavingPost, getAutosaveAttribute, getEditedPostAttribute, @@ -173,7 +173,7 @@ export default compose( [ const { id, link, title, status } = getCurrentPost(); return { - isNew: isCleanNewPost(), + isNew: isEditedPostNew(), postLink: link, isEditable: isPermalinkEditable(), isPublished: isCurrentPostPublished(), @@ -184,6 +184,7 @@ export default compose( [ postStatus: status, postTitle: title, savedSlug: getAutosaveAttribute( 'generated_slug' ), + currentTitle: getEditedPostAttribute( 'title' ), }; } ), withDispatch( ( dispatch ) => { diff --git a/packages/editor/src/components/post-title/index.js b/packages/editor/src/components/post-title/index.js index 3532f6e3c0716a..9adb9e5c9b64ab 100644 --- a/packages/editor/src/components/post-title/index.js +++ b/packages/editor/src/components/post-title/index.js @@ -140,7 +140,7 @@ class PostTitle extends Component { /* eslint-enable jsx-a11y/no-autofocus */ /> - { isSelected && isPostTypeViewable && } + { isSelected && isPostTypeViewable && }