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

WordPress Trac noreply at wordpress.org
Mon Mar 25 13:48:46 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):

 * removed ( 'form-table' == $format ) section from wp_list_post_revisions,
 no longer used
  * updated _wp_upgrade_revisions_of_post() and called after revision save
 via pre_post_update hook
  * added get_the_corrected_modified_author - returns corrected revision
 user name & id as array

  in my initial testing, this patch:
   * corrects autor name and gravatar in revision list and revision
 comparison, on the fly
   * on first post update old data is corrected, further updates leave data
 intact
   * author and gravatar dislpay correctly before and after data update

  before patch, create post edit as user admin, user1, user2
  note: user ID and content showing who updated are 'off by one' (shown in
 reverse order, bottom 'blank' content is 1st revision title only made by
 admin)

 [[Image(http://f.cl.ly/items/1d2X2l2V142e380e1w45/beforepatchbaddata.png)]]

  then applied patch, edited post again as user1, note corrected data:

 [[Image(http://f.cl.ly/items/1M023m3m0k3T370V2c3O/postupdatedafterpost.png)]]

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


More information about the wp-trac mailing list