[wp-trac] [WordPress Trac] #51292: `wp_publish_post` does not add default category to auto-drafts
WordPress Trac
noreply at wordpress.org
Sat Sep 19 01:21:04 UTC 2020
#51292: `wp_publish_post` does not add default category to auto-drafts
--------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Posts, Post Types | Version: 2.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"49000" 49000]:
{{{
#!CommitTicketReference repository="" revision="49000"
Posts, Post Types: Ensure default terms are added by `wp_publish_post()`.
Transitioning posts from `auto-draft` to `publish` via `wp_publish_post()`
could result in published posts without the default category or custom
taxonomy default terms.
Props frank-klein, TimothyBlynJacobs, peterwilsoncc.
Fixes #51292.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51292#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list