From d5b8d282e8c03929aafb1fa660181b7db9ad55d3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 18 Sep 2020 10:37:08 +0000 Subject: [PATCH] Docs: Update the URL for PHP date formats table in translator comments. Props hareesh-pillai, iandunn. Fixes #51332. Built from https://develop.svn.wordpress.org/trunk@48991 git-svn-id: http://core.svn.wordpress.org/trunk@48753 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 4 ++-- wp-admin/edit-form-advanced.php | 4 ++-- wp-admin/edit-form-comment.php | 4 ++-- wp-admin/includes/ajax-actions.php | 2 +- wp-admin/includes/class-wp-comments-list-table.php | 4 ++-- wp-admin/includes/class-wp-community-events.php | 8 ++++---- wp-admin/includes/class-wp-posts-list-table.php | 4 ++-- wp-admin/includes/dashboard.php | 4 ++-- wp-admin/includes/meta-boxes.php | 12 ++++++------ wp-admin/includes/misc.php | 2 +- wp-admin/includes/schema.php | 6 +++--- wp-admin/options-general.php | 2 +- wp-includes/class-wp-locale.php | 6 +++--- wp-includes/post-template.php | 4 ++-- wp-includes/script-loader.php | 8 ++++---- wp-includes/version.php | 2 +- 16 files changed, 38 insertions(+), 38 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 550045f9ec..ad11f3e05b 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -215,9 +215,9 @@ switch ( $action ) { $submitted = sprintf( /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), - /* translators: Comment date format. See https://www.php.net/date */ + /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'Y/m/d' ), $comment ), - /* translators: Comment time format. See https://www.php.net/date */ + /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'g:i a' ), $comment ) ); if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) { diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 0152631617..2cb9dd3e1c 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -171,9 +171,9 @@ if ( $viewable ) { $scheduled_date = sprintf( /* translators: Publish box date string. 1: Date, 2: Time. */ __( '%1$s at %2$s' ), - /* translators: Publish box date format, see https://www.php.net/date */ + /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ), - /* translators: Publish box time format, see https://www.php.net/date */ + /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) ); diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 38f6c7b9b0..ef0818c510 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -124,9 +124,9 @@ switch ( $comment->comment_approved ) { $submitted = sprintf( /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), - /* translators: Publish box date format, see https://www.php.net/date */ + /* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ), - /* translators: Publish box time format, see https://www.php.net/date */ + /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) ); ?> diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 09fa49cb94..7e0751280f 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -2205,7 +2205,7 @@ function wp_ajax_find_posts() { if ( '0000-00-00 00:00:00' === $post->post_date ) { $time = ''; } else { - /* translators: Date format in table columns, see https://www.php.net/date */ + /* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */ $time = mysql2date( __( 'Y/m/d' ), $post->post_date ); } diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index bae551f08e..1c7ac384ae 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -955,9 +955,9 @@ class WP_Comments_List_Table extends WP_List_Table { $submitted = sprintf( /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), - /* translators: Comment date format. See https://www.php.net/date */ + /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'Y/m/d' ), $comment ), - /* translators: Comment time format. See https://www.php.net/date */ + /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'g:i a' ), $comment ) ); diff --git a/wp-admin/includes/class-wp-community-events.php b/wp-admin/includes/class-wp-community-events.php index 4ab7149893..486739349e 100644 --- a/wp-admin/includes/class-wp-community-events.php +++ b/wp-admin/includes/class-wp-community-events.php @@ -375,7 +375,7 @@ class WP_Community_Events { * so that users can tell at a glance if the event is on a day they * are available, without having to open the link. */ - /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/date */ + /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */ $formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp ); $formatted_time = date_i18n( get_option( 'time_format' ), $timestamp ); @@ -384,7 +384,7 @@ class WP_Community_Events { $formatted_end_date = date_i18n( __( 'l, M j, Y' ), $end_timestamp ); if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) { - /* translators: Upcoming events month format. See https://www.php.net/date */ + /* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */ $start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp ); $end_month = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp ); @@ -393,10 +393,10 @@ class WP_Community_Events { /* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */ __( '%1$s %2$d–%3$d, %4$d' ), $start_month, - /* translators: Upcoming events day format. See https://www.php.net/date */ + /* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ), date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ), - /* translators: Upcoming events year format. See https://www.php.net/date */ + /* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp ) ); } else { diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index a7d4748840..01d881cb2e 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -1081,9 +1081,9 @@ class WP_Posts_List_Table extends WP_List_Table { $t_time = sprintf( /* translators: 1: Post date, 2: Post time. */ __( '%1$s at %2$s' ), - /* translators: Post date format. See https://www.php.net/date */ + /* translators: Post date format. See https://www.php.net/manual/datetime.format.php */ get_the_time( __( 'Y/m/d' ), $post ), - /* translators: Post time format. See https://www.php.net/date */ + /* translators: Post time format. See https://www.php.net/manual/datetime.format.php */ get_the_time( __( 'g:i a' ), $post ) ); diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 6b49163092..edc30cda2c 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -965,10 +965,10 @@ function wp_dashboard_recent_posts( $args ) { } elseif ( gmdate( 'Y-m-d', $time ) == $tomorrow ) { $relative = __( 'Tomorrow' ); } elseif ( gmdate( 'Y', $time ) !== $year ) { - /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/date */ + /* 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 */ $relative = date_i18n( __( 'M jS Y' ), $time ); } else { - /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/date */ + /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */ $relative = date_i18n( __( 'M jS' ), $time ); } diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index f1cec18c5e..eff0cde907 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -212,11 +212,11 @@ function post_submit_meta_box( $post, $args = array() ) { post_date ) ), - /* translators: Publish box time format, see https://www.php.net/date */ + /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) ); /* translators: Attachment information. %s: Date the attachment was uploaded. */ diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 68cdd4800a..74ac6cec27 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -1246,7 +1246,7 @@ function heartbeat_autosave( $response, $data ) { 'message' => __( 'Error while saving.' ), ); } else { - /* translators: Draft saved date format, see https://www.php.net/date */ + /* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */ $draft_saved_date_format = __( 'g:i:s a' ); $response['wp_autosave'] = array( 'success' => true, diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 54e9171f4b..d48846f739 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -422,11 +422,11 @@ function populate_options( array $options = array() ) { 'default_ping_status' => 'open', 'default_pingback_flag' => 1, 'posts_per_page' => 10, - /* translators: Default date format, see https://www.php.net/date */ + /* translators: Default date format, see https://www.php.net/manual/datetime.format.php */ 'date_format' => __( 'F j, Y' ), - /* translators: Default time format, see https://www.php.net/date */ + /* translators: Default time format, see https://www.php.net/manual/datetime.format.php */ 'time_format' => __( 'g:i a' ), - /* translators: Links last updated date format, see https://www.php.net/date */ + /* translators: Links last updated date format, see https://www.php.net/manual/datetime.format.php */ 'links_updated_date_format' => __( 'F j, Y g:i a' ), 'comment_moderation' => 0, 'moderation_notify' => 1, diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 975e01937e..aad04ced9b 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -18,7 +18,7 @@ if ( ! current_user_can( 'manage_options' ) ) { $title = __( 'General Settings' ); $parent_file = 'options-general.php'; -/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/date */ +/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */ $timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' ); add_action( 'admin_head', 'options_general_add_js' ); diff --git a/wp-includes/class-wp-locale.php b/wp-includes/class-wp-locale.php index 59ad290e08..50dd44847e 100644 --- a/wp-includes/class-wp-locale.php +++ b/wp-includes/class-wp-locale.php @@ -359,11 +359,11 @@ class WP_Locale { * @since 3.6.0 */ public function _strings_for_pot() { - /* translators: Localized date format, see https://www.php.net/date */ + /* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */ __( 'F j, Y' ); - /* translators: Localized time format, see https://www.php.net/date */ + /* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */ __( 'g:i a' ); - /* translators: Localized date and time format, see https://www.php.net/date */ + /* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */ __( 'F j, Y g:i a' ); } } diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index f1a5a109f6..6a181d52c8 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1824,7 +1824,7 @@ function wp_post_revision_title( $revision, $link = true ) { return false; } - /* translators: Revision date format, see https://www.php.net/date */ + /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */ $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); /* translators: %s: Revision date. */ $autosavef = __( '%s [Autosave]' ); @@ -1866,7 +1866,7 @@ function wp_post_revision_title_expanded( $revision, $link = true ) { } $author = get_the_author_meta( 'display_name', $revision->post_author ); - /* translators: Revision date format, see https://www.php.net/date */ + /* translators: Revision date format, see https://www.php.net/manual/datetime.format.php */ $datef = _x( 'F j, Y @ H:i:s', 'revision date format' ); $gravatar = get_avatar( $revision->post_author, 24 ); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index e0b80803d2..bc92504105 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -344,13 +344,13 @@ function wp_default_packages_inline_scripts( $scripts ) { ), ), 'formats' => array( - /* translators: Time format, see https://www.php.net/date */ + /* translators: Time format, see https://www.php.net/manual/datetime.format.php */ 'time' => get_option( 'time_format', __( 'g:i a' ) ), - /* translators: Date format, see https://www.php.net/date */ + /* translators: Date format, see https://www.php.net/manual/datetime.format.php */ 'date' => get_option( 'date_format', __( 'F j, Y' ) ), - /* translators: Date/Time format, see https://www.php.net/date */ + /* translators: Date/Time format, see https://www.php.net/manual/datetime.format.php */ 'datetime' => __( 'F j, Y g:i a' ), - /* translators: Abbreviated date/time format, see https://www.php.net/date */ + /* translators: Abbreviated date/time format, see https://www.php.net/manual/datetime.format.php */ 'datetimeAbbreviated' => __( 'M j, Y g:i a' ), ), 'timezone' => array( diff --git a/wp-includes/version.php b/wp-includes/version.php index d487ca2b8d..0644aa40f2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48990'; +$wp_version = '5.6-alpha-48991'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.