WordPress.org

Make WordPress Core

Ticket #47893: 47893.diff

File 47893.diff, 2.1 KB (added by birgire, 6 months ago)
  • src/wp-admin/edit-form-comment.php

    diff --git src/wp-admin/edit-form-comment.php src/wp-admin/edit-form-comment.php
    index a64be9c..e0ba795 100644
    if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ 
    103103
    104104<div class="misc-pub-section curtime misc-pub-curtime">
    105105<?php
    106 /* translators: Publish box date format, see https://secure.php.net/date */
    107 $datef = __( 'M j, Y @ H:i' );
     106$submitted = sprintf(
     107        /* translators: 1: comment date, 2: comment time */
     108        __( '%1$s at %2$s' ),
     109        date_i18n( _x( 'M j, Y', 'edit comment submitted-on date format' ), strtotime( $comment->comment_date ) ),
     110        date_i18n( _x( 'H:i', 'edit comment submitted-on time format' ), strtotime( $comment->comment_date ) )
     111);
    108112?>
    109113<span id="timestamp">
    110114<?php
    111115printf(
    112116        /* translators: %s: comment date */
    113117        __( 'Submitted on: %s' ),
    114         '<b>' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '</b>'
     118        '<b>' . $submitted . '</b>'
    115119);
    116120?>
    117121</span>
  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index b29123f..b1ee7f0 100644
    function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { 
    812812
    813813        echo '<div class="timestamp-wrap">';
    814814        /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
    815         printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
     815        printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
    816816
    817817        echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    818818
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index c06680c..0762452 100644
    function wp_default_scripts( &$scripts ) { 
    16111611                        array(
    16121612                                'submittedOn' => __( 'Submitted on:' ),
    16131613                                /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
    1614                                 'dateFormat'  => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ),
     1614                                'dateFormat'  => __( '%1$s %2$s, %3$s at %4$s:%5$s' ),
    16151615                        )
    16161616                );
    16171617