[wp-trac] [WordPress Trac] #50843: Default category for custom posts when post_content is empty
WordPress Trac
noreply at wordpress.org
Tue Aug 4 15:44:52 UTC 2020
#50843: Default category for custom posts when post_content is empty
-------------------------------+-----------------------------
Reporter: tmatsuur | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50843>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list