[wp-trac] [WordPress Trac] #24708: Extra revision created every time a new post is inserted
WordPress Trac
noreply at wordpress.org
Wed Jul 10 22:09:25 UTC 2013
#24708: Extra revision created every time a new post is inserted
--------------------------+--------------------
Reporter: wpdavis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Revisions | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by nacin):
Based on a [http://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2013-07-10&sort=asc#m639676 long IRC conversation], this should
indeed be adjusted.
[23842] should be reverted. It restores current API behavior. While it
will no longer create a revision for initial wp_insert_post() calls, the
proper way to "prime" a post is with get_default_post_to_edit(), which is
what core does in both UI and XML-RPC anyway.
Also, yes, wpdavis is right that this causes major importer headaches, as
the import_ids don't align. We should have a unit test for that.
I'm working on updating unit tests and such to handle such a revert.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24708#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list