[wp-trac] [WordPress Trac] #33809: Comment template hooks expect from $comment_ID to be integer

WordPress Trac noreply at wordpress.org
Thu Sep 10 18:01:50 UTC 2015


#33809: Comment template hooks expect from $comment_ID to be integer
--------------------------+-----------------------------
 Reporter:  dimadin       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33809>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list