Opened 16 years ago
Closed 11 years ago
#12219 closed enhancement (fixed)
Comments on attachments don't appear in Recent Comments Widget
| Reported by: | tfnab | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | Widgets | Version: | 2.9 |
| Severity: | normal | Keywords: | needs-refresh has-patch |
| Cc: | Focuses: |
Description
Comments on attachments don't appear in Recent Comments Widget.
This is the same in 2.9.1 (and probably many other previous versions) and the patch will work with the older version as well.
Attachments (1)
Change History (8)
#2
@
16 years ago
Can't we use the same query as for the dashboard recent comment widget?
SELECT * FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' ORDER BY c.comment_date_gmt DESC LIMIT 15
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch