[wp-trac] [WordPress Trac] #11329: Allow _wp_get_comment_list() to return comments only for specific users
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 22 18:52:31 UTC 2010
#11329: Allow _wp_get_comment_list() to return comments only for specific users
----------------------------+-----------------------------------------------
Reporter: pampfelimetten | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Accessibility | Version: 2.8.5
Severity: normal | Keywords: has-patch needs-testing
----------------------------+-----------------------------------------------
Comment(by pampfelimetten):
okay, also solved the total count thing:
{{{
if ( !empty($userid) ) {
if(!is_array($userid)) {
$query .= "AND p.post_author = '$userid' ";
$total = '';
} else {
$query .= "AND p.post_author IN ('".implode("',
'", $userid)."') ";
$total = '';
}
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11329#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list