[wp-trac] [WordPress Trac] #16215: Post Revision history displays the incorrect author

WordPress Trac noreply at wordpress.org
Thu Mar 7 02:15:09 UTC 2013


#16215: Post Revision history displays the incorrect author
--------------------------------------------------+-----------------------
 Reporter:  mdawaffe                              |       Owner:  westi
     Type:  defect (bug)                          |      Status:  accepted
 Priority:  normal                                |   Milestone:  3.6
Component:  Revisions                             |     Version:  2.6
 Severity:  normal                                |  Resolution:
 Keywords:  dev-feedback needs-testing has-patch  |
--------------------------------------------------+-----------------------

Comment (by adamsilverstein):

 changes in 16215.5.diff

  * wp_save_post_revision is now called before and after post update is
 fired, the pre post update call corrects old revision data on the fly by
 saving a copy of the previous post save as a revision before the post data
 is updated. once the most recent revision modified date matches the
 current post modified date, the pre update calls stops doing anything. the
 post update call always saves a copy of the updated post as a revision.
  * after updating a post, the most recent revision will always match the
 current post; for old posts two revisions will be added: one for the
 previous save (not yet stored) and one for the current version.
  * a new helper method wp_first_revision_matches_current_version tests if
 the most recent revision matches the post (new data), the revisions
 display code in #23497 will also need to know if the current post is
 stored as a revision.
  * two revisions are still created for the 1st post publish since post
 update gets called when users leave the title field, one revision is title
 only with blank content, the next includes the content.
  * revisions are not stored if no _wp_post_revision_fields have changed

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


More information about the wp-trac mailing list