WordPress.org

Make WordPress Core

Ticket #31121: 31121.patch

File 31121.patch, 8.4 KB (added by iseulde, 7 years ago)
  • src/wp-admin/edit-form-advanced.php

     
    8484         8 => sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    8585         9 => sprintf( __('Post scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview post</a>'),
    8686                /* translators: Publish box date format, see http://php.net/date */
    87                 date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
     87                date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
    8888        10 => sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    8989);
    9090$messages['page'] = array(
     
    9797         6 => sprintf( __('Page published. <a href="%s">View page</a>'), esc_url( $permalink ) ),
    9898         7 => __('Page saved.'),
    9999         8 => sprintf( __('Page submitted. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    100          9 => sprintf( __('Page scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
     100         9 => sprintf( __('Page scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
    101101        10 => sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    102102);
    103103$messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now.
  • src/wp-admin/edit-form-comment.php

     
    101101<div class="misc-pub-section curtime misc-pub-curtime">
    102102<?php
    103103/* translators: Publish box date format, see http://php.net/date */
    104 $datef = __( 'M j, Y @ G:i' );
     104$datef = __( 'M j, Y @ H:i' );
    105105$stamp = __('Submitted on: <b>%1$s</b>');
    106106$date = date_i18n( $datef, strtotime( $comment->comment_date ) );
    107107?>
  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    542542        }
    543543
    544544        public function column_date() {
    545                 return get_comment_date( __( 'Y/m/d \a\t g:ia' ) );
     545                return get_comment_date( __( 'Y/m/d \a\t g:i a' ) );
    546546        }
    547547
    548548        public function column_response() {
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

     
    446446                         */
    447447                        $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
    448448
    449                         $date_format = __( 'M j, Y @ G:i' );
     449                        $date_format = __( 'M j, Y @ H:i' );
    450450                        $last_updated_timestamp = strtotime( $plugin['last_updated'] );
    451451                ?>
    452452                <div class="plugin-card">
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    762762                                        $t_time = $h_time = __( 'Unpublished' );
    763763                                        $time_diff = 0;
    764764                                } else {
    765                                         $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
     765                                        $t_time = get_the_time( __( 'Y/m/d g:i:s a' ) );
    766766                                        $m_time = $post->post_date;
    767767                                        $time = get_post_time( 'G', true, $post );
    768768
  • src/wp-admin/includes/meta-boxes.php

     
    162162
    163163<?php
    164164/* translators: Publish box date format, see http://php.net/date */
    165 $datef = __( 'M j, Y @ G:i' );
     165$datef = __( 'M j, Y @ H:i' );
    166166if ( 0 != $post->ID ) {
    167167        if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
    168168                $stamp = __('Scheduled for: <b>%1$s</b>');
     
    293293<div id="misc-publishing-actions">
    294294        <?php
    295295        /* translators: Publish box date format, see http://php.net/date */
    296         $datef = __( 'M j, Y @ G:i' );
     296        $datef = __( 'M j, Y @ H:i' );
    297297        $stamp = __('Uploaded on: <b>%1$s</b>');
    298298        $date = date_i18n( $datef, strtotime( $post->post_date ) );
    299299        ?>
  • src/wp-admin/includes/plugin-install.php

     
    439439
    440440        echo "</div>\n";
    441441
    442         $date_format = __( 'M j, Y @ G:i' );
     442        $date_format = __( 'M j, Y @ H:i' );
    443443        $last_updated_timestamp = strtotime( $api->last_updated );
    444444        ?>
    445445        <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
  • src/wp-admin/includes/revision.php

     
    203203                        'id'         => $revision->ID,
    204204                        'title'      => get_the_title( $post->ID ),
    205205                        'author'     => $authors[ $revision->post_author ],
    206                         'date'       => date_i18n( __( 'M j, Y @ G:i' ), $modified ),
    207                         'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified ),
     206                        'date'       => date_i18n( __( 'M j, Y @ H:i' ), $modified ),
     207                        'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ),
    208208                        'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
    209209                        'autosave'   => $autosave,
    210210                        'current'    => $current,
     
    221221                        'id'         => $post->ID,
    222222                        'title'      => get_the_title( $post->ID ),
    223223                        'author'     => $authors[ $post->post_author ],
    224                         'date'       => date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_modified ) ),
    225                         'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), strtotime( $post->post_modified ) ),
     224                        'date'       => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ),
     225                        'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ),
    226226                        'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ),
    227227                        'autosave'   => false,
    228228                        'current'    => true,
  • src/wp-admin/options-general.php

     
    1818$title = __('General Settings');
    1919$parent_file = 'options-general.php';
    2020/* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */
    21 $timezone_format = _x('Y-m-d G:i:s', 'timezone date format');
     21$timezone_format = _x('Y-m-d H:i:s', 'timezone date format');
    2222
    2323/**
    2424 * Display JavaScript on the page.
  • src/wp-includes/post-template.php

     
    16591659                return false;
    16601660
    16611661        /* translators: revision date format, see http://php.net/date */
    1662         $datef = _x( 'j F, Y @ G:i', 'revision date format');
     1662        $datef = _x( 'F j, Y @ H:i', 'revision date format');
    16631663        /* translators: 1: date */
    16641664        $autosavef = _x( '%1$s [Autosave]', 'post revision title extra' );
    16651665        /* translators: 1: date */
     
    16951695
    16961696        $author = get_the_author_meta( 'display_name', $revision->post_author );
    16971697        /* translators: revision date format, see http://php.net/date */
    1698         $datef = _x( 'j F, Y @ G:i:s', 'revision date format');
     1698        $datef = _x( 'F j, Y @ H:i:s', 'revision date format');
    16991699
    17001700        $gravatar = get_avatar( $revision->post_author, 24 );
    17011701