Ticket #3084 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Plugin filter for comments

Reported by: majelbstoat Assigned to: majelbstoat
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0
Severity: normal Keywords: bg|has-patch
Cc:

Description

It would be useful to be able to process the array of comments in comments_template before they are sent to a theme. This would make it possible for plugins to selectively remove comments based on criteria, or merge comments from multiple posts (which is the case I'm particularly interested in). The attached patch passes the array of comments and the post id to a filter, 'comments_array', so that plugins can play around.

Attachments

3084.diff (0.7 kB) - added by majelbstoat on 08/30/06 10:25:17.
Pass the comments array to a filter before using it.

Change History

08/30/06 10:25:17 changed by majelbstoat

  • attachment 3084.diff added.

Pass the comments array to a filter before using it.

08/30/06 10:25:50 changed by majelbstoat

  • keywords set to bg|has-patch.
  • status changed from new to assigned.

10/11/06 17:10:00 changed by hgurol

What are the chances for this one to be included?

thanks...

12/01/06 03:30:28 changed by matt

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [4568]) Adding a hook for comments, fixes #3084