[wp-trac] [WordPress Trac] #15130: Lock is not set to correct user until there is a save
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 27 13:49:19 UTC 2010
#15130: Lock is not set to correct user until there is a save
--------------------------+-------------------------------------------------
Reporter: lancehudson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Editor | Version: 3.0
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by lancehudson):
If we set or clear _edit_last when doing wp_set_post_lock() won't that
make the last modified author be set to someone who hasn't saved anything?
In the patch I wrote I moved the locking to separate meta tags because
locking and who last editing are different things.
A stab at repro (I can't test this right now)
Setup WordPress with 3 users:
Login with one and edit a page.
Wait for that lock to expire then, open edit the page logged in as the
other user, (don't make any changes).
Then before that lock expires, open edit the page logged in as the third
user.
Which user does it say has the lock? It should be user #2 but it will be
#1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15130#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list