WordPress.org

Make WordPress Core

Ticket #18531: 18531.just-t_time.patch

File 18531.just-t_time.patch, 638 bytes (added by ocean90, 6 years ago)
  • wp-admin/includes/class-wp-media-list-table.php

     
    275275
    276276        case 'date':
    277277                if ( '0000-00-00 00:00:00' == $post->post_date ) {
    278                         $t_time = $h_time = __( 'Unpublished' );
     278                        $h_time = __( 'Unpublished' );
    279279                } else {
    280                         $t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
    281280                        $m_time = $post->post_date;
    282281                        $time = get_post_time( 'G', true, $post, false );
    283282                        if ( ( abs( $t_diff = time() - $time ) ) < 86400 ) {