Make WordPress Core

Ticket #35050: 35050.3.patch

File 35050.3.patch, 2.3 KB (added by afercia, 7 years ago)
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

     
    498498                         */
    499499                        $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
    500500
    501                         $date_format = __( 'M j, Y @ H:i' );
    502501                        $last_updated_timestamp = strtotime( $plugin['last_updated'] );
    503502                ?>
    504503                <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
  • src/wp-admin/includes/plugin-install.php

     
    531531
    532532        echo "</div>\n";
    533533
    534         $date_format = __( 'M j, Y @ H:i' );
    535 
    536534        if ( ! empty( $api->last_updated ) ) {
    537535                $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 = '';
    538546        }
    539 
    540547        ?>
    541548        <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
    542549        <div class="fyi">
     
    546553                <?php } if ( ! empty( $api->author ) ) { ?>
    547554                        <li><strong><?php _e( 'Author:' ); ?></strong> <?php echo links_add_target( $api->author, '_blank' ); ?></li>
    548555                <?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>
    552559                <?php } if ( ! empty( $api->requires ) ) { ?>
    553560                        <li><strong><?php _e( 'Requires WordPress Version:' ); ?></strong> <?php printf( __( '%s or higher' ), $api->requires ); ?></li>
    554561                <?php } if ( ! empty( $api->tested ) ) { ?>