[wp-trac] [WordPress Trac] #15130: Lock is not set to correct user until there is an autosave
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 15 21:13:51 UTC 2010
#15130: Lock is not set to correct user until there is an autosave
----------------------------+-----------------------------------------------
Reporter: lancehudson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15130>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list