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:
parent
d5d0b367ab
commit
e214fce67f
|
@ -439,6 +439,8 @@ function install_plugin_information() {
|
|||
|
||||
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 class="fyi">
|
||||
|
@ -448,8 +450,8 @@ function install_plugin_information() {
|
|||
<?php } if ( ! empty( $api->author ) ) { ?>
|
||||
<li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
|
||||
<?php } if ( ! empty( $api->last_updated ) ) { ?>
|
||||
<li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo $api->last_updated; ?>">
|
||||
<?php printf( __( '%s ago' ), human_time_diff( strtotime( $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( $last_updated_timestamp ) ); ?>
|
||||
</span></li>
|
||||
<?php } if ( ! empty( $api->requires ) ) { ?>
|
||||
<li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue