Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33809 closed defect (bug) (fixed)

Comment template hooks expect from $comment_ID to be integer

Reported by: dimadin Owned by: wonderboymusic
Priority: normal Milestone: 4.4
Component: Comments Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

I don't know if this was pre-4.4 behavior, but I have noticed after [33961] that many hooks in comment template function use $comment_ID and assume that it is integer.

I have changed variable in most places but in some I needed to introduce get_comment() so I would get comment_ID and used $comment instead.

Attachments (1)

33809.diff​ (5.7 KB ) - added by dimadin 11 years ago.

Download all attachments as: .zip

Change History (3)

#1 @wonderboymusic
11 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review → 4.4
  • Owner set to wonderboymusic
  • Status new → assigned

#2 @wonderboymusic
11 years ago

  • Resolution → fixed
  • Status assigned → closed

In 34008:

After [33961], ensure that comment filters that expect a comment ID are receiving one.

Props dimadin.
Fixes #33809.

Note: See TracTickets for help on using tickets.