Index: wp-admin/includes/post.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-admin/includes/post.php	(revision 0bae73682b0a34009636ee4666963e12bb3926d2)
+++ wp-admin/includes/post.php	(revision )
@@ -1458,9 +1458,24 @@
 	/** This filter is documented in wp-admin/includes/ajax-actions.php */
 	$time_window = apply_filters( 'wp_check_post_lock_window', 150 );
 
-	if ( $time && $time > time() - $time_window && $user != get_current_user_id() )
-		return $user;
-	return false;
+	$lock_status = false;
+
+	if ( $time && $time > time() - $time_window && $user != get_current_user_id() ) {
+		$lock_status = $user;
+	}
+
+	/**
+	 * Filters whether to filter lock status.
+	 *
+	 * @since 4.7.0
+	 *
+	 * @param bool|int  $lock_status    User ID of user with lock or false.
+	 * @param int       $post_id        ID of the post to check for editing.
+	 * @param int       $time           Time of locked post.
+	 * @param int       $time_window    The interval in seconds the post lock duration.
+	 * @param int       $user           User ID of user with lock.
+	 */
+	return apply_filters( 'wp_post_lock_status', $lock_status, $post_id, $time, $time_window, $user );
 }
 
 /**
