[wp-trac] [WordPress Trac] #29612: Query for multiple comment statuses

WordPress Trac noreply at wordpress.org
Tue Oct 21 10:19:28 UTC 2014


#29612: Query for multiple comment statuses
-------------------------+------------------------------
 Reporter:  ebinnion     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  4.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by psycleuk):

 I'm also working on a project where multiple statuses need to be returned
 at the same time. The patch by ebinnion would be ideal. The work around at
 the moment is to combine the statuses together into a single 'status' then
 filter on 'comments_clauses' to explode it back out.

 I'd also like to see it combined with ryans patch (
 https://core.trac.wordpress.org/ticket/21101#comment:27 ) which included a
 'full' option which then allowed no comment_approved column to be part of
 the SQL. The reason for that is if you are requesting a custom comment
 type then you may well want all regardless of status.

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


More information about the wp-trac mailing list