[wp-trac] [WordPress Trac] #14809: comments_by_type doesn't always get reset

WordPress Trac noreply at wordpress.org
Thu Sep 24 16:30:14 UTC 2015


#14809: comments_by_type doesn't always get reset
-------------------------------------+-----------------------------
 Reporter:  nmassey                  |       Owner:  wonderboymusic
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.4
Component:  Comments                 |     Version:  3.0.1
 Severity:  minor                    |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"34503"]:
 {{{
 #!CommitTicketReference repository="" revision="34503"
 Comments: In `comments_template()`, set `$wp_query->comments_by_type` to
 empty array if not separating comments. The value becomes stale otherwise.
 Edge case.

 Props jakub.tyrcha.
 Fixes #14809.
 }}}

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


More information about the wp-trac mailing list