[wp-trac] [WordPress Trac] #20006: get_comments (and WP_Comment_Query) does not accept multiple post_type
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 12 18:45:38 UTC 2012
#20006: get_comments (and WP_Comment_Query) does not accept multiple post_type
--------------------------+------------------------------
Reporter: Justin_K | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nprasath002):
Now the args can be passed as an array
{{{
'post_type' => array('attachment', 'post', 'page')
}}}
I have added another foreach loop inside the current one to add OR
statements.
First time i have wrote a patch involving a query class.
Glad if someone could give me some feedback
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20006#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list