Opened 19 years ago
Closed 17 years ago
#4378 closed enhancement (invalid)
Adding filters for Recent Comments Widget
| Reported by: | hovenko | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Widgets | Version: | 2.7 |
| Severity: | minor | Keywords: | needs-patch |
| Cc: | Focuses: |
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
@
19 years ago
- Type defect → enhancement
I see that the cache was not cleared when new comments were written. Applying a new patch.
#6
@
18 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Maybe it's time for a comments API?