Privacy: A11y: Show time of privacy request status change.
Add the date and time of privacy request status changes in the privacy requests table. Previously, `human_time_diff()` was used in the first 24 hours, and only the date after 24 hours. Change the output to display both date and time after 24 hours, using the format used for comments. Props birgire, desrosj, afercia, xkon, tz-media, garrett-eclipse, sirlouen, sukhendu2002, sajjad67, fakhriaz, joedolson. Fixes #44267. Built from https://develop.svn.wordpress.org/trunk@60891 git-svn-id: http://core.svn.wordpress.org/trunk@60227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1454,6 +1454,11 @@ table.form-table td .updated p {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.privacy_requests .status-date {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-privacy-request-form {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
2
wp-admin/css/forms-rtl.min.css
vendored
2
wp-admin/css/forms-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1453,6 +1453,11 @@ table.form-table td .updated p {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.privacy_requests .status-date {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-privacy-request-form {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
2
wp-admin/css/forms.min.css
vendored
2
wp-admin/css/forms.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -461,7 +461,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
|
||||
echo esc_html( $status_object->label );
|
||||
|
||||
if ( $timestamp ) {
|
||||
echo ' (' . $this->get_timestamp_as_date( $timestamp ) . ')';
|
||||
echo '<span class="status-date">' . $this->get_timestamp_as_date( $timestamp ) . '</span>';
|
||||
}
|
||||
|
||||
echo '</span>';
|
||||
@@ -487,7 +487,14 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
|
||||
return sprintf( __( '%s ago' ), human_time_diff( $timestamp ) );
|
||||
}
|
||||
|
||||
return date_i18n( get_option( 'date_format' ), $timestamp );
|
||||
return sprintf(
|
||||
/* translators: 1: privacy request date format, 2: privacy request time format. */
|
||||
__( '%1$s at %2$s' ),
|
||||
/* translators: privacy request date format. See https://www.php.net/manual/en/datetime.format.php */
|
||||
date_i18n( __( 'Y/m/d' ), $timestamp ),
|
||||
/* translators: privacy request time format. See https://www.php.net/manual/en/datetime.format.php */
|
||||
date_i18n( __( 'g:i a' ), $timestamp )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60890';
|
||||
$wp_version = '6.9-alpha-60891';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user