[wp-trac] [WordPress Trac] #35433: Walker_Comment::comment calls comment_text which forces the comment to be re-queried rather than use $comments variable cache

WordPress Trac noreply at wordpress.org
Wed Jan 13 05:12:54 UTC 2016


#35433: Walker_Comment::comment calls comment_text which forces the comment to be
re-queried rather than use $comments variable cache
--------------------------+-----------------------------
 Reporter:  pcfreak30     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On line 282, by passing {{{get_comment_id()}}} you are causing the comment
 to be re-fetched rather than pull from the $comments array. This causes
 the filter comments_array to be bypassed and possibly others. If This is
 changed to false, null, 0, etc it uses correct data.

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


More information about the wp-trac mailing list