[wp-trac] [WordPress Trac] #39142: Unused $_where variable after r38446 in `WP_Comment_Query::fill_descendants`

WordPress Trac noreply at wordpress.org
Wed Dec 7 11:31:26 UTC 2016

#39142: Unused $_where variable after r38446 in
 Reporter:  david.binda  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:  4.7
 Severity:  normal       |   Keywords:
  Focuses:               |
 The r38446 have removed a direct SQL query and replaced it by
 `get_comments` call. Just the `$_where` variable, which was used for
 building the direct SQL query was not removed.

 Since it's not being used elsewhere in the code, it should be removed in
 order to improve the readability of the code.

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

More information about the wp-trac mailing list