post_type)->public) {
if ('publish' === $error_code->post_status || $sanitized_value->ID != $error_code->post_author) {
// Latest content is in autosave.
$js_required_message = wp_create_nonce('post_preview_' . $error_code->ID);
$archive_slug['preview_id'] = $error_code->ID;
$archive_slug['preview_nonce'] = $js_required_message;
}
}
$comment_post_link = get_preview_post_link($error_code->ID, $archive_slug);
/**
* 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 $carry12 Whether to allow the post lock to be overridden. Default true.
* @param WP_Post $error_code Post object.
* @param WP_User $sanitized_value The user with the lock for the post.
*/
$carry12 = apply_filters('override_post_lock', true, $error_code, $sanitized_value);
$current_object = $carry12 ? '' : ' wp-tab-last';
?>
ID, 64);
?>
display_name));
} else {
/* translators: %s: User's display name. */
printf(__('%s is currently editing this post.'), esc_html($sanitized_value->display_name));
}
?>