Make WordPress Core

Ticket #43287: 43287.diff

File 43287.diff, 2.0 KB (added by jainnidhi, 5 years ago)
  • wp-admin/includes/meta-boxes.php

    diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php
    index 181d5bb..e150692 100644
    a b if ( 0 != $post->ID ) { 
    204204                /* translators: Post date information. 1: Date on which the post was published */
    205205                $stamp = __( 'Published on: <b>%1$s</b>' );
    206206        } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
    207                 $stamp = __( 'Publish <b>immediately</b>' );
     207                $stamp = __( 'Publish <b>Immediately</b>' );
    208208        } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
    209209                /* translators: Post date information. 1: Date on which the post is to be published */
    210210                $stamp = __( 'Schedule for: <b>%1$s</b>' );
    if ( 0 != $post->ID ) { 
    214214        }
    215215        $date = date_i18n( $datef, strtotime( $post->post_date ) );
    216216} else { // draft (no saves, and thus no date specified)
    217         $stamp = __( 'Publish <b>immediately</b>' );
     217        $stamp = __( 'Publish <b>Immediately</b>' );
    218218        $date  = date_i18n( $datef, strtotime( current_time( 'mysql' ) ) );
    219219}
    220220
    function post_comment_status_meta_box( $post ) { 
    757757<input name="advanced_view" type="hidden" value="1" />
    758758<p class="meta-options">
    759759        <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked( $post->comment_status, 'open' ); ?> /> <?php _e( 'Allow comments' ); ?></label><br />
    760         <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked( $post->ping_status, 'open' ); ?> /> 
     760        <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked( $post->ping_status, 'open' ); ?> />
    761761                                                                                                                                                                                                                                                                                                                <?php
    762762                                                                                                                                                                                                                                                                                                                printf(
    763763                                                                                                                                                                                                                                                                                                                        /* translators: %s: Codex URL */