[wp-trac] [WordPress Trac] #37187: Get rid of unnecessary property being set in `WP_Comment_Query`
WordPress Trac
noreply at wordpress.org
Sun Jun 26 14:05:05 UTC 2016
#37187: Get rid of unnecessary property being set in `WP_Comment_Query`
--------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.1
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
`WP_Comment_Query` sets an unnecessary property `$comment_count`. It's not
defined as a class member nor is it documented anywhere. It seems like it
accidentally got there, maybe when parts of the code were copied from
`WP_Query` (as this one actually has a `$comment_count` property which
makes sense there).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37187>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list