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

WordPress Trac noreply at wordpress.org
Wed Mar 27 14:12:08 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):

 in [attachment:16215.10.diff​ 16215.10.diff​]:

  * changed time() to number_format( microtime( true ), 10, '.', '' ) for
 more precision
  * removed on the fly conversion function
 'get_the_corrected_modified_author'
  * added call to _wp_upgrade_revisions_of_post in wp-admin/post.php


 here is some post data showing whats happening:

 initial data - no patch, create as admin, update as user 1, update as user
 2 (with content matching user)
  * note post_author does not match author indicated in content updates; ID
 170 & 171 should be post_author = 1, ID 172 should be post_author = 2; the
 current revision is missing

 [[Image(http://f.cl.ly/items/112g3I290W361H1T1F14/initial%20data%20after%203%20updates.png)]]

 got an auto save in there while testing:

 [[Image(http://f.cl.ly/items/0B252s1x1c0W0b3c3u0n/bad%20data%20before%20update.png)]]

 after applying patch and viewing post, note all post_author's are correct:

 [[Image(http://f.cl.ly/items/3n2s0Y1f2g052e3h3d0c/corrected%20data.png)]]

 after another update:

 [[Image(http://f.cl.ly/items/3l1O2m130T0g2C372z1M/corrected%20data%20with%20post.png)]]

 a new post created with same sequence, but after patch applied, note
 correct post_author data:

 [[Image(http://f.cl.ly/items/2S3Y051u2P2O2a1r231l/newpostwithpatch.png)]]

 just notice one needed update and adding...

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


More information about the wp-trac mailing list