WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20215 closed defect (bug) (invalid)

get_comment_date() got wrong mysql2date()-Call

Reported by: Jurik Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Comments Keywords: reporter-feedback
Focuses: Cc:

Description

In file 'comment-template.php' line 375 and 378 the function 'mysql2date()' calls:

$date = mysql2date($d, $comment->comment_date);

But "$comment->comment_date" doesn't exist in '$comment' anymore. It's "$comment->comment_date_gmt".

Change History (2)

comment:1 scribu2 years ago

  • Keywords reporter-feedback added; needs-patch removed

Are you sure it's not a plugin or theme issue? The comment_date column exists in the schema definition:

http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/schema.php#L96

comment:2 SergeyBiryukov2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Feel free to reopen with the steps to reproduce if there's still a problem.

Note: See TracTickets for help on using tickets.