WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#50843 new defect (bug)

Default category for custom posts when post_content is empty

Reported by: tmatsuur Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

If you enter only the post_content and save, or enter the post_title and post_content and save, the default category is selected and it works as intended.

But when I type in only the post_title and save it, no categories appear to be selected.

Upon investigating the reason, if no post_content is entered, the post_status value will be "auto_draft" and as a result the default category will not be applied.

Is the above as expected?

WordPress: 5.5-RC1-48708

Change History (2)

#1 @tmatsuur
4 months ago

But when I type in only the post_title and save it, no categories appear to be selected.

This wasn't accurate.

There was a problem when the [Publish] button was clicked without entering the title and moving the "focus" to other places even once.

#2 @desrosj
4 months ago

  • Version changed from trunk to 5.5
Note: See TracTickets for help on using tickets.