﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
15130,Lock is not set to correct user until there is a save,lancehudson,,"When a user opens a post for editing the editor calls 
wp_check_post_lock which returns false if it has been AUTOSAVE_INTERVAL * 2 since the lock was set and the user is not equal to _edit_last.

The problem is _edit_last is not the person who has the lock, until an autosave or save is triggered.

Originally the wp_set_post_lock set the _edit_last to the user setting the lock, #6043 and [7103].  But in ticket #12763 this was removed because _edit_last is the last modified by author. 

wp_set_post_lock needs to set the lock user to a new post meta (_edit_lock_user ?) and wp_check_post_lock needs to be changed to reference this variable.
_admin_notice_post_locked also needs to be updated to match.",defect (bug),closed,normal,3.1,Editor,3.0,normal,fixed,has-patch commit,lancehudson cyberhobo@… scribu
