Make WordPress Core

Changeset 31110


Ignore:
Timestamp:
01/09/2015 06:20:08 AM (10 years ago)
Author:
SergeyBiryukov
Message:

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

see #30717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r31090 r31110  
    440440    echo "</div>\n";
    441441
     442    $date_format = __( 'M j, Y @ G:i' );
     443    $last_updated_timestamp = strtotime( $api->last_updated );
    442444    ?>
    443445    <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
     
    449451            <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
    450452        <?php } if ( ! empty( $api->last_updated ) ) { ?>
    451             <li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo $api->last_updated; ?>">
    452                 <?php printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) ); ?>
     453            <li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>">
     454                <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); ?>
    453455            </span></li>
    454456        <?php } if ( ! empty( $api->requires ) ) { ?>
Note: See TracChangeset for help on using the changeset viewer.