[wp-trac] [WordPress Trac] #21963: Consolidate post insertion APIs
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 11 17:37:01 UTC 2012
#21963: Consolidate post insertion APIs
--------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by nacin):
In [22189]:
{{{
#!CommitTicketReference repository="" revision="22189"
Use wp_update_post() rather than wp_insert_post() in wp_publish_post() to
avoid stomping of values like categories. props ericmann, fixes #22167.
see #21963.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21963#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list