Opened 3 years ago

Last modified 3 years ago

#12219 new enhancement

Comments on attachments don't appear in Recent Comments Widget

Reported by: tfnab Owned by: azaozz
Priority: normal Milestone: Future Release
Component: Widgets Version: 2.9.1
Severity: normal Keywords: has-patch, recent-comments-widget, attachment-comments
Cc:

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)

ticket-12219_wp30_recent-comments-widget_attachment-comments.patch (984 bytes) - added by tfnab 3 years ago.
Patch

Download all attachments as: .zip

Change History (4)

  • Milestone changed from Unassigned to 3.0
  • Type changed from enhancement to defect (bug)
  • Version changed from 3.0 to 2.9.1

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
  • Milestone changed from 3.0 to Future Release
  • Type changed from defect (bug) to enhancement
Note: See TracTickets for help on using tickets.