#16882 closed enhancement (duplicate)
Add support for fetching comments posted since a specific date
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.1 |
| Component: | Comments | Keywords: | has-patch mobile |
| Focuses: | Cc: |
Description
Adding a "since" option to wp.getComments and get_comments() could help reducing bandwidth used by mobile apps.
Probably useful for themes/plugins too
Attachments (1)
Change History (9)
#4
@
13 years ago
- Resolution set to wontfix
- Status changed from new to closed
Just like WP_Query requires a clauses or posts_where filter to get posts in a date range, comments would require a comments_clauses['where'] filter.
See Codex for posts_clauses: http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_clauses
#5
@
13 years ago
I'm not sure why it's closed. A filter can be used but option would be nice to have.
Note: See
TracTickets for help on using
tickets.
Added patch for it. Please code review, not sure if some kind of date validation needs to be added, or
$wpdb->prepare()handles that already.