Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Draft set as post title #17628

Closed
swissspidy opened this issue Sep 27, 2019 · 2 comments · Fixed by #17633
Closed

Auto Draft set as post title #17628

swissspidy opened this issue Sep 27, 2019 · 2 comments · Fixed by #17633
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@swissspidy
Copy link
Member

Describe the bug

When I create a new post in Gutenberg and publish with some content but no title, it gets saved with the title set to “Auto Draft”.

I have to remove the title again and change the slug when I really want a post without a title.

To reproduce
Steps to reproduce the behavior:

  1. Create new post
  2. Write some content
  3. Publish post
  4. See "Auto Draft" title.
  5. View post on frontend, notice "Auto Draft" title and "auto-draft" slug.

Expected behavior

The post should have no title and its ID as the slug.

Screenshots

Screenshot 2019-09-27 at 11 11 54

Video: https://cloudup.com/c5bALGfxT_8

Additional context

  • Chrome 77 on macOS
  • Current Gutenberg master
  • WordPress 5.3-beta1-46334 running Twenty Nineteen theme
  • PHP 7.3 and MySQL 5.6 on Apache

The same issue with "Auto Draft" was reported in #6614, but the bigger issue there was a nginx misconfiguration.

#8770 is kinda related too.

@swissspidy swissspidy added the [Type] Bug An existing feature does not function as intended label Sep 27, 2019
@brentswisher
Copy link
Contributor

I tried looking into this. I suspect it is related to the changes here: #17317, but I haven't been able to find a solution to the problem. I thought it might be worth it to bring that PR to the attention of anyone else looking into this.

Also might be worth noting that the title gets set to "Auto Draft" when starting a new post, adding content and manually saving it as a draft, not just when publishing.

@joyously
Copy link

Is this related to what happens when you click Preview? It seems to save the post and you can get out of the editor without a prompt to Save even if you didn't ever click Save or Publish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants