[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:40:43 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:                |
--------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"24650"]:
 {{{
 #!CommitTicketReference repository="" revision="24650"
 Don't store a revision for the initial call to wp_insert_post(), only on
 saves.

 In core UI (and XML-RPC), we first create an auto-draft via
 get_default_post_to_edit(), which means the first "save" is in practice
 the first revision.

 This reverts [23842].

 fixes #24708.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24708#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list