[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:42:58 UTC 2013
#24708: Extra revision created every time a new post is inserted
--------------------------+---------------------
Reporter: wpdavis | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.6
Component: Revisions | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
--------------------------+---------------------
Comment (by nacin):
In [changeset:"1309/tests"]:
{{{
#!CommitTicketReference repository="tests" revision="1309"
Rewrite revisions unit tests to account for [23842].
wp_insert_post() (and thus the factory) does *not* create a revision by
default. When it is desired for the first "save" to be a revision, an
auto-draft should be used.
The various cap-checking tests still use wp_insert_post() to test that
route as well, hence the decrementing of revision counts.
see #24708.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24708#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list