WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16215, comment 59


Ignore:
Timestamp:
03/25/13 23:00:52 (13 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16215, comment 59

    initial v1  
    22 
    33`wp_check_post_lock()` would return false when checked for the current user but we can look at `get_post_meta( $post->ID, '_edit_lock', true )` for the lock "freshness" (regardless of the user) and prevent updating the revisions if the post was locked a few seconds ago. 
     4 
     5Edit: on second thought, that can miss if two requests come in at the exact same second, so probably not good enough.