[wp-trac] [WordPress Trac] #15423: Add consistency for the `type` argument between get_comments and wp_list_comments

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 14 09:17:18 UTC 2010


#15423: Add consistency for the `type` argument  between get_comments and
wp_list_comments
-------------------------+--------------------------------------------------
 Reporter:  oncletom     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------
 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:
  * `type` argument could be an array (to collect many types of comment at
 a type, especially custom comments type, like tweetbacks etc.)
  * `type` values should be harmonized: the ones working with
 `wp_list_comments` would work with `get_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 :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15423>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list