[wp-trac] [WordPress Trac] #21003: WP_Comment_Query with WP_Meta_Query integration

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 17 23:41:15 UTC 2012


#21003: WP_Comment_Query with WP_Meta_Query integration
-------------------------+-------------------------------------------------
 Reporter:  nikolov.tmw  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Comments     |    Version:  3.4
 Severity:  normal       |   Keywords:  has-patch 2nd-opinion needs-testing
-------------------------+-------------------------------------------------
 Basically the title says it all. What I'd like to see in WordPress is an
 implementation of the WP_Meta_Query that was intorduced in 3.2 for the
 comments query as well as ordering by meta values.

 Basically if those features are implemented, developers will have greater
 flexibility about comments - the first things that come to mind are rating
 system(I know there should be a plugin out there for that already),
 separating comments by some parameter(let's say age/sex/country/etc, if
 there is some kind of sociological study) and many more.

 I stumbled upon this quite recently when I was making an extension for
 qTranslata and I had to get comments by specific meta value - I had to
 either write custom MySQL(at which I'm not really good), or implement the
 meta query.

 I'm attaching the diff file that I made(I've tested that with 3.4) for wp-
 includes/comments.php

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


More information about the wp-trac mailing list