Skip to content

Commit

Permalink
Don't show title permalink editor until a save
Browse files Browse the repository at this point in the history
This somewhat diminishes the effects of this pull request, but it will
help it pass the e2e tests and also streamlines writing a bit. Reverts
back to preventing showing the permalink editor in the title until after
a manual or autosave. It does at least show the actual permalink on
the autosave and users can edit the slug at any time using the
document sidebar.
  • Loading branch information
earnjam committed Mar 18, 2020
1 parent bd08f74 commit ddeeb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/post-permalink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class PostPermalink extends Component {
export default compose( [
withSelect( ( select ) => {
const {
isCleanNewPost,
isEditedPostNew,
isPermalinkEditable,
getCurrentPost,
getPermalinkParts,
Expand All @@ -160,7 +160,7 @@ export default compose( [
const postType = getPostType( postTypeName );

return {
isNew: isCleanNewPost(),
isNew: isEditedPostNew(),
postLink: link,
permalinkParts: getPermalinkParts(),
postSlug: safeDecodeURIComponent( getEditedPostSlug() ),
Expand Down

0 comments on commit ddeeb8d

Please sign in to comment.