Opened 8 years ago
Closed 8 years ago
#39142 closed enhancement (fixed)
Unused $_where variable after r38446 in `WP_Comment_Query::fill_descendants`
Reported by: | david.binda | Owned by: | boonebgorges |
---|---|---|---|
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
$_where
variable and moving$exclude_keys
to inside conditional where it is used.