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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 19 15:05:19 GMT 2009


#6774: Remove _edit_lock on save or exit
---------------------------+------------------------------------------------
 Reporter:  AaronCampbell  |       Owner:  azaozz     
     Type:  enhancement    |      Status:  new        
 Priority:  high           |   Milestone:  2.8        
Component:  JavaScript     |     Version:  2.7        
 Severity:  normal         |    Keywords:  needs-patch
---------------------------+------------------------------------------------
Changes (by Denis-de-Bernardy):

  * owner:  anonymous => azaozz
  * priority:  highest omg bbq => high
  * component:  General => JavaScript
  * severity:  major => normal
  * type:  defect (bug) => enhancement


Comment:

 there currently is this line:

 {{{
 $time_window = apply_filters( 'wp_check_post_lock_window',
 AUTOSAVE_INTERVAL * 2 );
 }}}

 in other words, the lock's time window is rather short. we'd only ever get
 a lock when two users edit a post, one after the other.

 suggested fix:

  - We add an onUnload event to the page using jQuery
  - onUnload even sends an ajax request to remove the lock

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


More information about the wp-trac mailing list