Opened 9 years ago
Closed 9 years ago
#39142 closed enhancement (fixed)
Unused $_where variable after r38446 in `WP_Comment_Query::fill_descendants`
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | 4.7 |
| Component: | Comments | Keywords: | |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Removing the
$_wherevariable and moving$exclude_keysto inside conditional where it is used.