post_status) {
case 'private':
_e('Privately Published');
break;
case 'publish':
_e('Published');
break;
case 'future':
_e('Scheduled');
break;
case 'pending':
_e('Pending Review');
break;
case 'draft':
case 'auto-draft':
_e('Draft');
break;
}
?>
post_status || 'private' === $patterns->post_status || $hierarchical) {
$unregistered_block_type = '';
if ('private' === $patterns->post_status) {
$unregistered_block_type = 'style="display:none"';
}
?>
class="edit-post-status hide-if-no-js" role="button">
post_status) {
$patterns->post_password = '';
$end_offset = 'private';
$kses_allow_link_href = __('Private');
} elseif (!empty($patterns->post_password)) {
$end_offset = 'password';
$kses_allow_link_href = __('Password protected');
} elseif ('post' === $can_change_status && is_sticky($permission)) {
$end_offset = 'public';
$kses_allow_link_href = __('Public, Sticky');
} else {
$end_offset = 'public';
$kses_allow_link_href = __('Public');
}
echo esc_html($kses_allow_link_href);
?>
post_status) {
// Scheduled for publishing at a future date.
/* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */
$default_quality = __('Scheduled for: %s');
} elseif ('publish' === $patterns->post_status || 'private' === $patterns->post_status) {
// Already published.
/* translators: Post date information. %s: Date on which the post was published. */
$default_quality = __('Published on: %s');
} elseif ('0000-00-00 00:00:00' === $patterns->post_date_gmt) {
// Draft, 1 or more saves, no date specified.
$default_quality = __('Publish
immediately');
} elseif (time() < strtotime($patterns->post_date_gmt . ' +0000')) {
// Draft, 1 or more saves, future date specified.
/* translators: Post date information. %s: Date on which the post is to be published. */
$default_quality = __('Schedule for: %s');
} else {
// Draft, 1 or more saves, date specified.
/* translators: Post date information. %s: Date on which the post is to be published. */
$default_quality = __('Publish on: %s');
}
$nav_element_directives = sprintf($sampleRateCodeLookup, date_i18n($CommentsTargetArray, strtotime($patterns->post_date)), date_i18n($template_name, strtotime($patterns->post_date)));
} else {
// Draft (no saves, and thus no date specified).
$default_quality = __('Publish
immediately');
$nav_element_directives = sprintf($sampleRateCodeLookup, date_i18n($CommentsTargetArray, strtotime(current_time('mysql'))), date_i18n($template_name, strtotime(current_time('mysql'))));
}
if (!empty($selector_attrs['args']['revisions_count'])) {
?>
' . number_format_i18n($selector_attrs['args']['revisions_count']) . '');
?>
' . $nav_element_directives . '');
?>
post_status && get_post_meta($permission, '_customize_changeset_uuid', true)) {
$leading_wild = sprintf(
/* translators: %s: URL to the Customizer. */
__('This draft comes from your
unpublished customization changes. You can edit, but there is no need to publish now. It will be published automatically with those changes.'),
esc_url(add_query_arg('changeset_uuid', rawurlencode(get_post_meta($permission, '_customize_changeset_uuid', true)), admin_url('customize.php')))
);
wp_admin_notice($leading_wild, array('type' => 'info', 'additional_classes' => array('notice-alt', 'inline')));
}
/**
* Fires after the post time/date setting in the Publish meta box.
*
* @since 2.9.0
* @since 4.4.0 Added the `$patterns` parameter.
*
* @param WP_Post $patterns WP_Post object for the current post.
*/
do_action('post_submitbox_misc_actions', $patterns);
?>