[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
Fri Apr 29 15:46:42 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:  wonderboymusic
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.6
Component:  Comments                 |     Version:  3.7
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37325"]:
 {{{
 #!CommitTicketReference repository="" revision="37325"
 Comments: pass `$comment` to `comment_text()` in
 `Walker_Comment::comment()` instead of using a function which can skip the
 cache.

 Props rachelbaker.
 Fixes #35433.
 }}}

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


More information about the wp-trac mailing list