#37187 closed defect (bug) (fixed)
Get rid of unnecessary property being set in `WP_Comment_Query`
| Reported by: | flixos90 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Comments | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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).
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
37187.diff removes the line.