Use localized format for Last Updated date in plugin details modal, for consistency with [31055].

see #30717.
Built from https://develop.svn.wordpress.org/trunk@31110


git-svn-id: http://core.svn.wordpress.org/trunk@31091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-09 06:21:22 +00:00
parent d5d0b367ab
commit e214fce67f
2 changed files with 5 additions and 3 deletions

View File

@ -439,6 +439,8 @@ function install_plugin_information() {
echo "</div>\n"; echo "</div>\n";
$date_format = __( 'M j, Y @ G:i' );
$last_updated_timestamp = strtotime( $api->last_updated );
?> ?>
<div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'> <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
<div class="fyi"> <div class="fyi">
@ -448,8 +450,8 @@ function install_plugin_information() {
<?php } if ( ! empty( $api->author ) ) { ?> <?php } if ( ! empty( $api->author ) ) { ?>
<li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li> <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
<?php } if ( ! empty( $api->last_updated ) ) { ?> <?php } if ( ! empty( $api->last_updated ) ) { ?>
<li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo $api->last_updated; ?>"> <li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>">
<?php printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) ); ?> <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); ?>
</span></li> </span></li>
<?php } if ( ! empty( $api->requires ) ) { ?> <?php } if ( ! empty( $api->requires ) ) { ?>
<li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li> <li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.2-alpha-31109'; $wp_version = '4.2-alpha-31110';
/** /**
* 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.