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