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?
- The topic ‘bug for generating comment line in admin comment page?’ is closed to new replies.