[wp-trac] [WordPress Trac] #10615: Recent Comments Widget Should Use Comments API
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 17:11:16 UTC 2009
#10615: Recent Comments Widget Should Use Comments API
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Comments | Version: 2.9
Severity: normal | Keywords: get_comments WP_Widget_Recent_Comments has-patch early
--------------------------+-------------------------------------------------
Comment(by filosofo):
Replying to [comment:7 westi]:
> Do we really need to use output buffering and echos here?
No. I was desperately trying to get get_comments() in instead of querying
the database directly, so to respond to the above criticism I just copied
the recent posts widget almost exactly. (Recent posts, the calendar, and
various chunks of the admin use the output buffering trick).
How about a patch that builds the HTML for recent comments as well as
recent posts, so we're somewhat consistent?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10615#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list