Changeset 31055
- Timestamp:
- 01/06/2015 01:02:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r30782 r31055 445 445 */ 446 446 $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); 447 448 $date_format = __( 'M j, Y @ G:i' ); 449 $last_updated_timestamp = strtotime( $plugin['last_updated'] ); 447 450 ?> 448 451 <div class="plugin-card"> … … 470 473 </div> 471 474 <div class="column-updated"> 472 <strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( $plugin['last_updated']); ?>">473 <?php printf( __( '%s ago' ), human_time_diff( strtotime( $plugin['last_updated'] )) ); ?>475 <strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>"> 476 <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp ) ); ?> 474 477 </span> 475 478 </div>
Note: See TracChangeset
for help on using the changeset viewer.