[wp-trac] [WordPress Trac] #30854: `wp_insert_post` doesn't save revision for new published post
WordPress Trac
noreply at wordpress.org
Mon Jan 5 16:51:35 UTC 2015
#30854: `wp_insert_post` doesn't save revision for new published post
--------------------------+------------------------------
Reporter: JamesDiGioia | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by JamesDiGioia):
The only other thing I can think of is to change the `$update` variable to
be `true` if it either has an ID or the `post_status !== auto-draft`. Or
if it only `== 'publish'`. Does that make more sense?
I ended up working around it without an issue in my own plugin, but I
think it's still a bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30854#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list