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

WordPress Trac noreply at wordpress.org
Mon Mar 25 22:51:29 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 azaozz):

 Wondering if we can use the actual post lock instead of an option. By the
 time the revisions version update functions are called, the post is
 already locked to the user.

 `wp_check_post_lock()` would return false when checked for the current
 user but we can look at `get_post_meta( $post->ID, '_edit_lock', true )`
 for the lock "freshness" (regardless of the user) and prevent updating the
 revisions if the post was locked a few seconds ago.

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


More information about the wp-trac mailing list