WordPress.org

Make WordPress Core

Ticket #24412: 24412.patch

File 24412.patch, 938 bytes (added by zeo, 8 years ago)
  • wp-admin/includes/class-wp-comments-list-table.php

     
    336336                $comment_url = esc_url( get_comment_link( $comment->comment_ID ) );
    337337                $the_comment_status = wp_get_comment_status( $comment->comment_ID );
    338338
    339                 $ptime = date( 'G', strtotime( $comment->comment_date ) );
    340                 if ( ( abs( time() - $ptime ) ) < DAY_IN_SECONDS )
    341                         $ptime = sprintf( __( '%s ago' ), human_time_diff( $ptime ) );
    342                 else
    343                         $ptime = mysql2date( __( 'Y/m/d \a\t g:i A' ), $comment->comment_date );
    344 
    345339                if ( $user_can ) {
    346340                        $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );
    347341                        $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );