[wp-trac] [WordPress Trac] #19623: Use Comment API in comments_template, rather than hardcoded SQL
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 20 18:16:30 UTC 2011
#19623: Use Comment API in comments_template, rather than hardcoded SQL
------------------------------------+------------------------------
Reporter: simonwheatley | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Changes (by simonwheatley):
* keywords: => has-patch dev-feedback
Comment:
Here's a patch as a starting point for discussion.
* Enhances {{{WP_Comment_Query}}} to add query args:
{{{unapproved_author}}}, {{{unapproved_author_email}}},
{{{unapproved_user_id}}}
* Enhances {{{comments_template}}} to use the new functionality in the
{{{WP_Comment_Query}}} to get comments
* Adds a filter {{{comments_template_args}}} on the args passed to
{{{WP_Comment_Query}}} before they are passed
* Adds in a {{{post__in}}} filter if anyone should ever want to query
comments from more than one post at the same time (separate from the above
requirements)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19623#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list