WordPress.org

Ready to get started?Download WordPress

Forums

bug for generating comment line in admin comment page? (1 post)

  1. libbit
    Member
    Posted 4 years ago #

    If this is the wrong place for this, I apologize.
    the function _wp_comment_row located in wp-admin/includes/template.php line 2107, I noticed this line

    $ptime = date('G', strtotime( $comment->comment_date ) );
    	if ( ( abs(time() - $ptime) ) < 86400 )
    		$ptime = sprintf( __('%s ago'), human_time_diff( $ptime ) );

    this line generates the submit time of the comment, but why assign hours to $ptime? It doesn't make sense. I think it should be $ptime = strtotime( $comment->comment_date );
    can anyone help?
    plzzzzzzzz!

Topic Closed

This topic has been closed to new replies.

About this Topic