Opened 16 years ago
Closed 14 years ago
#4378 closed enhancement (invalid)
Adding filters for Recent Comments Widget
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | 2.7 |
Component: | Widgets | Keywords: | needs-patch |
Focuses: | Cc: |
Description
The attached patch adds two filters called "comments_join" and "comments_where" to alter the SQL statement for the Recent Comments widget.
Attachments (1)
Change History (11)
#2
@
16 years ago
- Type changed from defect to enhancement
I see that the cache was not cleared when new comments were written. Applying a new patch.
#6
@
15 years ago
- Keywords needs-patch added; has-patch removed
Currently the recent comments widget uses a SELECT * which is a change from the version that the attached patch was created against.
Consequently this would have to be re-done, in case limiting the output to just the fields in the patch breaks other functionality.
As an aside, selecting either * or comment_id, comment_post_id would always be DISTINCT so the keyword is not required.
Note: See
TracTickets for help on using
tickets.
Maybe it's time for a comments API?