Opened 16 years ago
Closed 16 years ago
#15423 closed enhancement (fixed)
Add consistency for the `type` argument between get_comments and wp_list_comments
| Reported by: | oncletom | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Hello,
I wanted to use get_comments to display in a separate way comments and pings (trackbacks + pingbacks... or whatever is not a comment published by users on the blog).
However, I realized despite get_comments and wp_list_comments, the pings value for this latest function does not work with get_comments.
I saw there are some filters planned for get_comments but I think it's more a usage case I'm discussing of.
2 things could be done, IMHO:
typeargument could be an array (to collect many types of comment at a type, especially custom comments type, like tweetbacks etc.)typevalues should be harmonized: the ones working withwp_list_commentswould work withget_comments(comment, trackback, pingback, ping) − all plural, or all singular, depending if we talk about a comment type, or a comment type quantity
Hope it helps :)
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
'pings' now works in get_comments() in 3.1. It can also be 'comment', 'trackback', and 'pingback'. Closing as fixed.