Opened 3 years ago

Last modified 2 years ago

#14279 new defect (bug)

wp_new_comment ignores comment_date_gmt and comment_date

Reported by: johneckman Owned by:
Priority: normal Milestone: Future Release
Component: Comments Version: 3.0
Severity: normal Keywords: has-patch
Cc:

Description

wp_new_comment takes in a $comment array, but then ignores the comment_date and comment_date_gmt passed into it, instead replacing them with the current time.

It should only set them if the data passed in is empty or not a date/time.

Attachments (1)

14279.diff (896 bytes) - added by solarissmoke 2 years ago.

Download all attachments as: .zip

Change History (3)

comment:1   dd322 years ago

  • Keywords needs-patch easy added
  • Milestone changed from Awaiting Review to Future Release
  • Keywords has-patch added; needs-patch easy removed
Note: See TracTickets for help on using tickets.