WordPress.org

Make WordPress Core

Ticket #9588: 9588.2.diff

File 9588.2.diff, 608 bytes (added by Denis-de-Bernardy, 9 years ago)

this one should be using current_time()

  • wp-admin/includes/template.php

     
    20772077                $author_url_display = substr($author_url_display, 0, 49) . '...';
    20782078
    20792079        $ptime = date('G', strtotime( $comment->comment_date ) );
    2080         if ( ( abs(time() - $ptime) ) < 86400 )
     2080        if ( ( abs(current_time('timestamp') - $ptime) ) < 86400 )
    20812081                $ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) );
    20822082        else
    20832083                $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date );