[wp-trac] [WordPress Trac] #6774: Remove _edit_lock on save or exit

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 13 11:01:00 UTC 2009


#6774: Remove _edit_lock on save or exit
---------------------------+------------------------------------------------
 Reporter:  AaronCampbell  |       Owner:  azaozz        
     Type:  enhancement    |      Status:  new           
 Priority:  high           |   Milestone:  Future Release
Component:  JavaScript     |     Version:  2.7           
 Severity:  normal         |    Keywords:  needs-patch   
---------------------------+------------------------------------------------

Comment(by azaozz):

 Tested running a `release_lock` function with ajax on window.onunload. The
 problem is that when the user reloads the write page, the lock is removed
 with the ajax and added back with the normal request. If the ajax is
 delayed (internet routing problems, packet loss, etc.), it may arrive
 after the normal reload request and the post will be unlocked until the
 next autosave.

 In that terms decreasing the $time_window to `AUTOSAVE_INTERVAL + 35`
 seems better (30 sec. is the default connection timeout).

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


More information about the wp-trac mailing list