Changes between Initial Version and Version 1 of Ticket #16215, comment 59
- Timestamp:
- 03/25/2013 11:00:52 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16215, comment 59
initial v1 2 2 3 3 `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 5 Edit: on second thought, that can miss if two requests come in at the exact same second, so probably not good enough.