Skip to content

Commit 7d23a21

Browse files
Docs: Update the URL for PHP date formats table in translator comments.
Props hareesh-pillai, iandunn. Fixes #51332. git-svn-id: https://develop.svn.wordpress.org/trunk@48991 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cb38bc9 commit 7d23a21

15 files changed

Lines changed: 37 additions & 37 deletions

src/wp-admin/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@
215215
$submitted = sprintf(
216216
/* translators: 1: Comment date, 2: Comment time. */
217217
__( '%1$s at %2$s' ),
218-
/* translators: Comment date format. See https://www.php.net/date */
218+
/* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */
219219
get_comment_date( __( 'Y/m/d' ), $comment ),
220-
/* translators: Comment time format. See https://www.php.net/date */
220+
/* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */
221221
get_comment_date( __( 'g:i a' ), $comment )
222222
);
223223
if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {

src/wp-admin/edit-form-advanced.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@
171171
$scheduled_date = sprintf(
172172
/* translators: Publish box date string. 1: Date, 2: Time. */
173173
__( '%1$s at %2$s' ),
174-
/* translators: Publish box date format, see https://www.php.net/date */
174+
/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
175175
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
176-
/* translators: Publish box time format, see https://www.php.net/date */
176+
/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
177177
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
178178
);
179179

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@
124124
$submitted = sprintf(
125125
/* translators: 1: Comment date, 2: Comment time. */
126126
__( '%1$s at %2$s' ),
127-
/* translators: Publish box date format, see https://www.php.net/date */
127+
/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
128128
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
129-
/* translators: Publish box time format, see https://www.php.net/date */
129+
/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
130130
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
131131
);
132132
?>

src/wp-admin/includes/ajax-actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ function wp_ajax_find_posts() {
22052205
if ( '0000-00-00 00:00:00' === $post->post_date ) {
22062206
$time = '';
22072207
} else {
2208-
/* translators: Date format in table columns, see https://www.php.net/date */
2208+
/* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */
22092209
$time = mysql2date( __( 'Y/m/d' ), $post->post_date );
22102210
}
22112211

src/wp-admin/includes/class-wp-comments-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,9 @@ public function column_date( $comment ) {
955955
$submitted = sprintf(
956956
/* translators: 1: Comment date, 2: Comment time. */
957957
__( '%1$s at %2$s' ),
958-
/* translators: Comment date format. See https://www.php.net/date */
958+
/* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */
959959
get_comment_date( __( 'Y/m/d' ), $comment ),
960-
/* translators: Comment time format. See https://www.php.net/date */
960+
/* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */
961961
get_comment_date( __( 'g:i a' ), $comment )
962962
);
963963

src/wp-admin/includes/class-wp-community-events.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ protected function format_event_data_time( $response_body ) {
375375
* so that users can tell at a glance if the event is on a day they
376376
* are available, without having to open the link.
377377
*/
378-
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/date */
378+
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */
379379
$formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp );
380380
$formatted_time = date_i18n( get_option( 'time_format' ), $timestamp );
381381

@@ -384,7 +384,7 @@ protected function format_event_data_time( $response_body ) {
384384
$formatted_end_date = date_i18n( __( 'l, M j, Y' ), $end_timestamp );
385385

386386
if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) {
387-
/* translators: Upcoming events month format. See https://www.php.net/date */
387+
/* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */
388388
$start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp );
389389
$end_month = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp );
390390

@@ -393,10 +393,10 @@ protected function format_event_data_time( $response_body ) {
393393
/* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */
394394
__( '%1$s %2$d–%3$d, %4$d' ),
395395
$start_month,
396-
/* translators: Upcoming events day format. See https://www.php.net/date */
396+
/* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */
397397
date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ),
398398
date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ),
399-
/* translators: Upcoming events year format. See https://www.php.net/date */
399+
/* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */
400400
date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp )
401401
);
402402
} else {

src/wp-admin/includes/class-wp-posts-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,9 @@ public function column_date( $post ) {
10811081
$t_time = sprintf(
10821082
/* translators: 1: Post date, 2: Post time. */
10831083
__( '%1$s at %2$s' ),
1084-
/* translators: Post date format. See https://www.php.net/date */
1084+
/* translators: Post date format. See https://www.php.net/manual/datetime.format.php */
10851085
get_the_time( __( 'Y/m/d' ), $post ),
1086-
/* translators: Post time format. See https://www.php.net/date */
1086+
/* translators: Post time format. See https://www.php.net/manual/datetime.format.php */
10871087
get_the_time( __( 'g:i a' ), $post )
10881088
);
10891089

src/wp-admin/includes/dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,10 +965,10 @@ function wp_dashboard_recent_posts( $args ) {
965965
} elseif ( gmdate( 'Y-m-d', $time ) == $tomorrow ) {
966966
$relative = __( 'Tomorrow' );
967967
} elseif ( gmdate( 'Y', $time ) !== $year ) {
968-
/* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/date */
968+
/* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */
969969
$relative = date_i18n( __( 'M jS Y' ), $time );
970970
} else {
971-
/* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/date */
971+
/* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */
972972
$relative = date_i18n( __( 'M jS' ), $time );
973973
}
974974

src/wp-admin/includes/meta-boxes.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ function post_submit_meta_box( $post, $args = array() ) {
212212
</div>
213213

214214
<?php
215-
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
215+
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
216216
$date_string = __( '%1$s at %2$s' );
217-
/* translators: Publish box date format, see https://www.php.net/date */
217+
/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
218218
$date_format = _x( 'M j, Y', 'publish box date format' );
219-
/* translators: Publish box time format, see https://www.php.net/date */
219+
/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
220220
$time_format = _x( 'H:i', 'publish box time format' );
221221

222222
if ( 0 !== $post_id ) {
@@ -404,11 +404,11 @@ function attachment_submit_meta_box( $post ) {
404404
<span id="timestamp">
405405
<?php
406406
$uploaded_on = sprintf(
407-
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
407+
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php */
408408
__( '%1$s at %2$s' ),
409-
/* translators: Publish box date format, see https://www.php.net/date */
409+
/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */
410410
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
411-
/* translators: Publish box time format, see https://www.php.net/date */
411+
/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */
412412
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
413413
);
414414
/* translators: Attachment information. %s: Date the attachment was uploaded. */

src/wp-admin/includes/misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ function heartbeat_autosave( $response, $data ) {
12461246
'message' => __( 'Error while saving.' ),
12471247
);
12481248
} else {
1249-
/* translators: Draft saved date format, see https://www.php.net/date */
1249+
/* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */
12501250
$draft_saved_date_format = __( 'g:i:s a' );
12511251
$response['wp_autosave'] = array(
12521252
'success' => true,

0 commit comments

Comments
 (0)