WordPress.org

Make WordPress Core

Ticket #39888: 39888.1.diff

File 39888.1.diff, 532 bytes (added by arshidkv12, 3 years ago)

If user not exist return false

  • wp-admin/includes/post.php

     
    14621462        $time = $lock[0];
    14631463        $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );
    14641464
     1465        if ( get_userdata( $user ) === false )
     1466                return false;
     1467
    14651468        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    14661469        $time_window = apply_filters( 'wp_check_post_lock_window', 150 );
    14671470