#16882 closed enhancement (duplicate)
Add support for fetching comments posted since a specific date
| Reported by: | koke | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch mobile |
| Cc: | Focuses: |
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 → wontfix
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.