Opened 6 years ago
Closed 4 years ago
#4378 closed enhancement (invalid)
Adding filters for Recent Comments Widget
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Widgets | Version: | 2.7 |
| Severity: | minor | Keywords: | needs-patch |
| 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)
comment:2
hovenko
— 6 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.
comment:6
mrmist
— 4 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.
comment:9
Denis-de-Bernardy
— 4 years ago
- Priority changed from normal to low
- Severity changed from normal to minor
see also #9211
comment:10
Denis-de-Bernardy
— 4 years ago
- Milestone 2.9 deleted
- Resolution set to invalid
- Status changed from new to closed
you can now override the widget's callback entirely.
Maybe it's time for a comments API?