[wp-trac] [WordPress Trac] #28434: Add 'fields' parameter to WP_Comment_Query

WordPress Trac noreply at wordpress.org
Sat Jun 21 20:23:51 UTC 2014


#28434: Add 'fields' parameter to WP_Comment_Query
-------------------------+--------------------
 Reporter:  mordauk      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Comments     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------

Comment (by wonderboymusic):

 [attachment:28434.diff 28434.diff] is more in line with how `get_posts()`
 works. Not sure that `id=>parent` should be `comment_ID=>comment_post_ID`.
 Seems like `comment_parent` might be more appropriate. Updated the unit
 tests as well, which didn't pass and didn't contain all new values for
 `fields`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28434#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list