WordPress.org

Make WordPress Core

Ticket #47893: 47893.3.diff

File 47893.3.diff, 2.2 KB (added by audrasjb, 6 months ago)

Patch refreshed

  • src/wp-admin/edit-form-comment.php

    diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php
    index 79d215a923..2f55b9ba6f 100644
    a b 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. See https://secure.php.net/date' ), strtotime( $comment->comment_date ) ),
     110        date_i18n( _x( 'H:i', 'edit comment submitted-on time format. See https://secure.php.net/date' ), 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 a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index fb86ebccf9..a77e700df3 100644
    a b function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { 
    824824
    825825        echo '<div class="timestamp-wrap">';
    826826        /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    827         printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
     827        printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
    828828
    829829        echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    830830
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 1ec63c5178..d6d07a027e 100644
    a b function wp_default_scripts( &$scripts ) { 
    16171617                        array(
    16181618                                'submittedOn' => __( 'Submitted on:' ),
    16191619                                /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    1620                                 'dateFormat'  => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ),
     1620                                'dateFormat'  => __( '%1$s %2$s, %3$s at %4$s:%5$s' ),
    16211621                        )
    16221622                );
    16231623