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

WordPress Trac noreply at wordpress.org
Tue Apr 2 01:57:34 UTC 2013


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

Comment (by azaozz):

 > It's actually a bit heavy. It seems to run on every admin edit, and
 causes queries for revisions and some other execution, even after a post
 has been upgraded.

 Yeah, was looking into that too. `_wp_upgrade_revisions_of_post()` has to
 run before the revisions postbox is shown, so we show the corrected
 authors and have the extra revision in there.

 We are calling `wp_get_post_revisions()` on every load of edit-form-
 advanced.php (when determining whether to show the postbox), perhaps we
 can move the call to `_wp_upgrade_revisions_of_post()` there. We need to
 load the revisions so we can check the version.

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


More information about the wp-trac mailing list