mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Make dates in multisite site and user list tables translatable.
Props pavelevap. Fixes #22302. Built from https://develop.svn.wordpress.org/trunk@31833 git-svn-id: http://core.svn.wordpress.org/trunk@31815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
78f0ca13c5
commit
a18118ed7c
@ -203,9 +203,9 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ( 'list' == $mode ) {
|
if ( 'list' == $mode ) {
|
||||||
$date = 'Y/m/d';
|
$date = __( 'Y/m/d' );
|
||||||
} else {
|
} else {
|
||||||
$date = 'Y/m/d \<\b\r \/\> g:i:s a';
|
$date = __( 'Y/m/d g:i:s a' );
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( $this->items as $blog ) {
|
foreach ( $this->items as $blog ) {
|
||||||
|
@ -229,9 +229,9 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
|||||||
|
|
||||||
case 'registered':
|
case 'registered':
|
||||||
if ( 'list' == $mode )
|
if ( 'list' == $mode )
|
||||||
$date = 'Y/m/d';
|
$date = __( 'Y/m/d' );
|
||||||
else
|
else
|
||||||
$date = 'Y/m/d \<\b\r \/\> g:i:s a';
|
$date = __( 'Y/m/d g:i:s a' );
|
||||||
|
|
||||||
echo "<td $attributes>" . mysql2date( $date, $user->user_registered ) . "</td>";
|
echo "<td $attributes>" . mysql2date( $date, $user->user_registered ) . "</td>";
|
||||||
break;
|
break;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta1-31832';
|
$wp_version = '4.2-beta1-31833';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user