post_type)->public) {
if ('publish' === $session->post_status || $paginate->ID != $session->post_author) {
// Latest content is in autosave.
$search_handler = wp_create_nonce('post_preview_' . $session->ID);
$lp_upgrader['preview_id'] = $session->ID;
$lp_upgrader['preview_nonce'] = $search_handler;
}
}
$scheduled_date = get_preview_post_link($session->ID, $lp_upgrader);
/**
* Filters whether to allow the post lock to be overridden.
*
* Returning false from the filter will disable the ability
* to override the post lock.
*
* @since 3.6.0
*
* @param bool $imagestrings Whether to allow the post lock to be overridden. Default true.
* @param WP_Post $session Post object.
* @param WP_User $paginate The user with the lock for the post.
*/
$imagestrings = apply_filters('override_post_lock', true, $session, $paginate);
$layout_definitions = $imagestrings ? '' : ' wp-tab-last';
?>
ID, 64);
?>
display_name));
} else {
/* translators: %s: User's display name. */
printf(__('%s is currently editing this post.'), esc_html($paginate->display_name));
}
?>