Ticket #35050: 35050.3.patch
File 35050.3.patch, 2.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/class-wp-plugin-install-list-table.php
498 498 */ 499 499 $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); 500 500 501 $date_format = __( 'M j, Y @ H:i' );502 501 $last_updated_timestamp = strtotime( $plugin['last_updated'] ); 503 502 ?> 504 503 <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>"> -
src/wp-admin/includes/plugin-install.php
531 531 532 532 echo "</div>\n"; 533 533 534 $date_format = __( 'M j, Y @ H:i' );535 536 534 if ( ! empty( $api->last_updated ) ) { 537 535 $last_updated_timestamp = strtotime( $api->last_updated ); 536 537 /* translators: 1: plugin update date, 2: plugin update time */ 538 $last_updated = sprintf( __( '%1$s at %2$s' ), 539 /* translators: plugin update date and time format. See http://php.net/date */ 540 date_i18n( __( 'M j, Y' ), $last_updated_timestamp ), 541 date_i18n( __( 'H:i' ), $last_updated_timestamp ) 542 ); 543 544 } else { 545 $last_updated_timestamp = ''; 538 546 } 539 540 547 ?> 541 548 <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'> 542 549 <div class="fyi"> … … 546 553 <?php } if ( ! empty( $api->author ) ) { ?> 547 554 <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li> 548 555 <?php } if ( ! empty( $api->last_updated ) ) { ?> 549 <li><strong><?php _e( 'Last Updated:' ); ?></strong> <span title="<?php echo esc_attr( date_i18n( $date_format, $last_updated_timestamp ) ); ?>">550 <?php printf( __( '%s ago' ), human_time_diff( $last_updated_timestamp )); ?>551 </ span></li>556 <li><strong><?php _e( 'Last Updated:' ); ?></strong> 557 <?php echo esc_html( $last_updated ); ?> 558 </li> 552 559 <?php } if ( ! empty( $api->requires ) ) { ?> 553 560 <li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li> 554 561 <?php } if ( ! empty( $api->tested ) ) { ?>