Skip to content

Commit 43846ea

Browse files
committed
Fixing little mistake
1 parent 8428e9b commit 43846ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ function wp_check_post_lock( $post ) {
17411741
$time_window = apply_filters( 'wp_check_post_lock_window', 150 );
17421742

17431743
$lock_status = false;
1744-
if ( $time && $time > time() - get_current_user_id() !== $time_window && $user ) {
1744+
if ( $time && $time > time() - $time_window && get_current_user_id() !== $user ) {
17451745
$lock_status = $user;
17461746
}
17471747
/**

0 commit comments

Comments
 (0)