Opened 17 years ago
Closed 17 years ago
#10463 closed defect (bug) (fixed)
Allow _wp_get_comment_list to handle custom comment types
| Reported by: | aaroncampbell | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9 |
| Component: | General | Version: | 2.8.1 |
| Severity: | normal | Keywords: | has-patch tested dev-feedback |
| Cc: | Focuses: |
Description
Plugins (like tweetbacks by Joost) can add custom comment types. While these can be easily used in most places, but not in _wp_get_comment_list(). Actually, on the edit-comments page you can use the admin_comment_types_dropdown filter to add additional comment types to the dropdown, but you can't actually filter by them.
I'm attaching a patch to fix it based on the existing usage where types is a string. However, I'm wondering if we should allow type to be either a string OR an array, which would allow you to specify multiple types.
Attachments (1)
Change History (10)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
To test you'll need to have some comments in the comments table that have a comment_type other than the defaults (empty, 'pingback', and 'trackback'). If you have the tweetbacks plugin installed, you probably already have some with the comment_type 'tweetback'.
Once you have some comments in there to test with, go to
/wp-admin/edit-comments.php?comment_type=____, filling in with your new comment_type.