Bring out the shears.

git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-01-06 04:11:14 +00:00
parent 9908d4ae83
commit eba71eb7c0
26 changed files with 72 additions and 72 deletions

View File

@@ -1221,7 +1221,7 @@ function wp_check_post_lock( $post_id ) {
$lock = explode( ':', $lock );
$time = $lock[0];
$user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );
$time_window = apply_filters( 'wp_check_post_lock_window', AUTOSAVE_INTERVAL * 2 );
if ( $time && $time > time() - $time_window && $user != get_current_user_id() )